From 97b5cef1870cb823761d655b4b3dd7c5850ffdd8 Mon Sep 17 00:00:00 2001 From: baiqi Date: Mon, 26 Jun 2023 09:46:35 +0800 Subject: [PATCH] fix: build error --- frontend/components.d.ts | 8 +++----- frontend/src/components/pure/ms-upload/locale/en-US.ts | 0 frontend/src/components/pure/ms-upload/locale/zh-CN.ts | 0 frontend/src/mock/user.ts | 8 ++++---- 4 files changed, 7 insertions(+), 9 deletions(-) delete mode 100644 frontend/src/components/pure/ms-upload/locale/en-US.ts delete mode 100644 frontend/src/components/pure/ms-upload/locale/zh-CN.ts diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 7df8b9877d..704d0f03b2 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -5,13 +5,11 @@ // Read more: https://github.com/vuejs/core/pull/3399 import '@vue/runtime-core' -export {} +export {}; declare module '@vue/runtime-core' { export interface GlobalComponents { - AFomrItem: typeof import('@arco-design/web-vue')['FomrItem'] - ASelectOption: typeof import('@arco-design/web-vue')['SelectOption'] - RouterLink: typeof import('vue-router')['RouterLink'] - RouterView: typeof import('vue-router')['RouterView'] + RouterLink: typeof import('vue-router')['RouterLink']; + RouterView: typeof import('vue-router')['RouterView']; } } diff --git a/frontend/src/components/pure/ms-upload/locale/en-US.ts b/frontend/src/components/pure/ms-upload/locale/en-US.ts deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/frontend/src/components/pure/ms-upload/locale/zh-CN.ts b/frontend/src/components/pure/ms-upload/locale/zh-CN.ts deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/frontend/src/mock/user.ts b/frontend/src/mock/user.ts index 0657e3963f..448c0b0fa5 100644 --- a/frontend/src/mock/user.ts +++ b/frontend/src/mock/user.ts @@ -7,7 +7,7 @@ import { isLogin } from '@/utils/auth'; setupMock({ setup() { // 用户信息 - Mock.mock(new RegExp(GetUserInfoUrl), () => { + Mock.mock(new RegExp(GetUserInfoUrl.toString()), () => { if (isLogin()) { const role = window.localStorage.getItem('userRole') || 'admin'; return successResponseWrap({ @@ -33,17 +33,17 @@ setupMock({ }); // 登出 - Mock.mock(new RegExp(LoginUrl), () => { + Mock.mock(new RegExp(LoginUrl.toString()), () => { return successResponseWrap({}); }); // 登出 - Mock.mock(new RegExp(LogoutUrl), () => { + Mock.mock(new RegExp(LogoutUrl.toString()), () => { return successResponseWrap(null); }); // 用户的服务端菜单 - Mock.mock(new RegExp(GetMenuListUrl), () => { + Mock.mock(new RegExp(GetMenuListUrl.toString()), () => { const menuList = [ { path: '/api-test',