1、修改logo图标
2、修改config.ts plat_url值
3、移除VITE_PLAT_API_URL
4、将应用改为目录
| | |
| | | "dev": "vite --mode env.local", |
| | | "dev-server": "vite --mode dev", |
| | | "ts:check": "vue-tsc --noEmit", |
| | | "build:local": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build", |
| | | "build:local": "node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build", |
| | | "build:dev": "node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build --mode dev", |
| | | "build:test": "node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build --mode test", |
| | | "build:stage": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode stage", |
| | | "build:prod": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode prod", |
| | | "build:stage": "node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build --mode stage", |
| | | "build:prod": "node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build --mode prod", |
| | | "serve:dev": "vite preview --mode dev", |
| | | "serve:prod": "vite preview --mode prod", |
| | | "preview": "pnpm build:local && vite preview", |
| | |
| | | "engines": { |
| | | "node": ">= 16.0.0", |
| | | "pnpm": ">=8.6.0" |
| | | }, |
| | | "rules": { |
| | | "vue/no-parsing-error": [2, { "x-invalid-end-tag": false }] |
| | | } |
| | | } |
| | |
| | | |
| | | const { plat_url} = config |
| | | |
| | | export interface SmsCodeVO { |
| | | mobile: string |
| | | scene: number |
| | | } |
| | | |
| | | export interface SmsLoginVO { |
| | | mobile: string |
| | | code: string |
| | | } |
| | | |
| | | // 登录 |
| | | export const login = (data: UserLoginVO) => { |
| | | return request.post({ url: plat_url + '/system/auth/login', data }) |
| | |
| | | path: '/', |
| | | component: Layout, |
| | | name: 'Home', |
| | | redirect: '/index', |
| | | meta: { |
| | | hidden: true, |
| | | noTagsView: true |
| | |
| | | * 应用菜单的类型枚举 |
| | | */ |
| | | export const SystemAppMenuTypeEnum = { |
| | | DIR: 1, // 应用 |
| | | DIR: 1, // 目录 |
| | | MENU: 2, // 菜单 |
| | | BUTTON: 3 // 按钮 |
| | | } |