• This project
    • Loading...
  • Sign in

Hooke / mlaj

Itomix
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • mlaj
  • src
  • api
  • auth.js
  • hookehuyr's avatar
    feat(微信授权): 添加微信授权模块及相关API · 28516001 ...
    28516001
    新增微信授权模块,包括授权页面、授权信息获取API及微信配置初始化逻辑。修改路由守卫以检查微信授权状态,未授权时跳转至授权页面。优化axios配置及Vant Toast样式导入路径。
    hookehuyr authored 2025-03-25 15:20:02 +0800
auth.js 233 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12
import { fn, fetch } from '@/api/fn';

const Api = {
  AUTH_INFO: '/srv/?a=openid_has',
}

/**
 * @description: 获取用户授权信息
 * @param {*}
 * @returns
 */
export const getAuthInfoAPI = () => fn(fetch.get(Api.AUTH_INFO));