feat: 更新 API 地址并优化代码格式
This commit is contained in:
@ -28,7 +28,7 @@ export default function setupUserLoginInfoGuard(router: Router) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (requiresAuth) {
|
if (requiresAuth) {
|
||||||
const hasPermission = checkRoutePermission(routeName);
|
const hasPermission = checkRoutePermission(routeName);
|
||||||
|
|
||||||
if (!hasPermission) {
|
if (!hasPermission) {
|
||||||
message.error('您没有权限访问该页面');
|
message.error('您没有权限访问该页面');
|
||||||
|
|||||||
@ -43,7 +43,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|||||||
'/api': {
|
'/api': {
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||||
target: 'http://192.168.40.12/api',
|
target: 'https://lingjiapi.lvfunai.com/api',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user