From b3913a86f842e359972296c12d1da84dd57dd270 Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 19 Jul 2022 23:03:10 +0800 Subject: [PATCH] refactor: vue3 --- yudao-ui-admin-vue3/package.json | 6 +++--- yudao-ui-admin-vue3/src/components/Table/src/Table.vue | 6 ++++++ yudao-ui-admin-vue3/src/router/index.ts | 3 +-- yudao-ui-admin-vue3/src/views/infra/job/job.data.ts | 2 +- yudao-ui-admin-vue3/types/env.d.ts | 6 ++++++ 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/yudao-ui-admin-vue3/package.json b/yudao-ui-admin-vue3/package.json index 44769f53c..3490a5a7b 100644 --- a/yudao-ui-admin-vue3/package.json +++ b/yudao-ui-admin-vue3/package.json @@ -1,7 +1,7 @@ { "name": "ruoyi-vue-pro-vue3", - "version": "0.0.160", - "description": "基于vue3、element-plus、typesScript、vite3。", + "version": "1.0.160", + "description": "基于vue3、element-plus、typesScript、vite3", "author": "xingyu", "private": false, "scripts": { @@ -93,7 +93,7 @@ "typescript": "4.7.4", "unplugin-vue-define-options": "^0.6.2", "vite": "3.0.2", - "vite-plugin-eslint": "^1.6.1", + "vite-plugin-eslint": "^1.7.0", "vite-plugin-html": "^3.2.0", "vite-plugin-purge-icons": "^0.8.1", "vite-plugin-style-import": "^1.4.1", diff --git a/yudao-ui-admin-vue3/src/components/Table/src/Table.vue b/yudao-ui-admin-vue3/src/components/Table/src/Table.vue index 63d131661..ade25b604 100644 --- a/yudao-ui-admin-vue3/src/components/Table/src/Table.vue +++ b/yudao-ui-admin-vue3/src/components/Table/src/Table.vue @@ -294,3 +294,9 @@ export default defineComponent({ } }) + diff --git a/yudao-ui-admin-vue3/src/router/index.ts b/yudao-ui-admin-vue3/src/router/index.ts index 4b8b49238..812ec4f7a 100644 --- a/yudao-ui-admin-vue3/src/router/index.ts +++ b/yudao-ui-admin-vue3/src/router/index.ts @@ -29,7 +29,7 @@ const router = createRouter({ scrollBehavior: () => ({ left: 0, top: 0 }) }) -// 路由白名单 +// 路由不重定向白名单 const whiteList = [ '/login', '/social-login', @@ -96,7 +96,6 @@ export const resetRouter = (): void => { router.hasRoute(name) && router.removeRoute(name) } }) - routes: remainingRouter as RouteRecordRaw[] } export const setupRouter = (app: App) => { diff --git a/yudao-ui-admin-vue3/src/views/infra/job/job.data.ts b/yudao-ui-admin-vue3/src/views/infra/job/job.data.ts index b91b8d790..24e5276c5 100644 --- a/yudao-ui-admin-vue3/src/views/infra/job/job.data.ts +++ b/yudao-ui-admin-vue3/src/views/infra/job/job.data.ts @@ -79,7 +79,7 @@ const crudSchemas = reactive([ }, { field: 'action', - width: '400px', + width: '500px', label: t('table.action'), form: { show: false diff --git a/yudao-ui-admin-vue3/types/env.d.ts b/yudao-ui-admin-vue3/types/env.d.ts index 1364a4766..c5399a1b9 100644 --- a/yudao-ui-admin-vue3/types/env.d.ts +++ b/yudao-ui-admin-vue3/types/env.d.ts @@ -9,7 +9,13 @@ declare module '*.vue' { interface ImportMetaEnv { readonly VITE_APP_TITLE: string + readonly VITE_PORT: number + readonly VITE_OPEN: boolean + readonly VITE_APP_TENANT_ENABLE: boolean + readonly VITE_BASE_URL: string + readonly VITE_UPLOAD_URL: string readonly VITE_API_BASEPATH: string + readonly VITE_API_URL: string readonly VITE_BASE_PATH: string readonly VITE_DROP_DEBUGGER: string readonly VITE_DROP_CONSOLE: string