fix: build error
This commit is contained in:
parent
6a1fb79faf
commit
97b5cef187
|
@ -5,13 +5,11 @@
|
||||||
// Read more: https://github.com/vuejs/core/pull/3399
|
// Read more: https://github.com/vuejs/core/pull/3399
|
||||||
import '@vue/runtime-core'
|
import '@vue/runtime-core'
|
||||||
|
|
||||||
export {}
|
export {};
|
||||||
|
|
||||||
declare module '@vue/runtime-core' {
|
declare module '@vue/runtime-core' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
AFomrItem: typeof import('@arco-design/web-vue')['FomrItem']
|
RouterLink: typeof import('vue-router')['RouterLink'];
|
||||||
ASelectOption: typeof import('@arco-design/web-vue')['SelectOption']
|
RouterView: typeof import('vue-router')['RouterView'];
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { isLogin } from '@/utils/auth';
|
||||||
setupMock({
|
setupMock({
|
||||||
setup() {
|
setup() {
|
||||||
// 用户信息
|
// 用户信息
|
||||||
Mock.mock(new RegExp(GetUserInfoUrl), () => {
|
Mock.mock(new RegExp(GetUserInfoUrl.toString()), () => {
|
||||||
if (isLogin()) {
|
if (isLogin()) {
|
||||||
const role = window.localStorage.getItem('userRole') || 'admin';
|
const role = window.localStorage.getItem('userRole') || 'admin';
|
||||||
return successResponseWrap({
|
return successResponseWrap({
|
||||||
|
@ -33,17 +33,17 @@ setupMock({
|
||||||
});
|
});
|
||||||
|
|
||||||
// 登出
|
// 登出
|
||||||
Mock.mock(new RegExp(LoginUrl), () => {
|
Mock.mock(new RegExp(LoginUrl.toString()), () => {
|
||||||
return successResponseWrap({});
|
return successResponseWrap({});
|
||||||
});
|
});
|
||||||
|
|
||||||
// 登出
|
// 登出
|
||||||
Mock.mock(new RegExp(LogoutUrl), () => {
|
Mock.mock(new RegExp(LogoutUrl.toString()), () => {
|
||||||
return successResponseWrap(null);
|
return successResponseWrap(null);
|
||||||
});
|
});
|
||||||
|
|
||||||
// 用户的服务端菜单
|
// 用户的服务端菜单
|
||||||
Mock.mock(new RegExp(GetMenuListUrl), () => {
|
Mock.mock(new RegExp(GetMenuListUrl.toString()), () => {
|
||||||
const menuList = [
|
const menuList = [
|
||||||
{
|
{
|
||||||
path: '/api-test',
|
path: '/api-test',
|
||||||
|
|
Loading…
Reference in New Issue