Commit b3913a86f842e359972296c12d1da84dd57dd270

Authored by xingyu
1 parent 9e2e220b

refactor: vue3

yudao-ui-admin-vue3/package.json
1 1 {
2 2 "name": "ruoyi-vue-pro-vue3",
3   - "version": "0.0.160",
4   - "description": "基于vue3、element-plus、typesScript、vite3。",
  3 + "version": "1.0.160",
  4 + "description": "基于vue3、element-plus、typesScript、vite3",
5 5 "author": "xingyu",
6 6 "private": false,
7 7 "scripts": {
... ... @@ -93,7 +93,7 @@
93 93 "typescript": "4.7.4",
94 94 "unplugin-vue-define-options": "^0.6.2",
95 95 "vite": "3.0.2",
96   - "vite-plugin-eslint": "^1.6.1",
  96 + "vite-plugin-eslint": "^1.7.0",
97 97 "vite-plugin-html": "^3.2.0",
98 98 "vite-plugin-purge-icons": "^0.8.1",
99 99 "vite-plugin-style-import": "^1.4.1",
... ...
yudao-ui-admin-vue3/src/components/Table/src/Table.vue
... ... @@ -294,3 +294,9 @@ export default defineComponent({
294 294 }
295 295 })
296 296 </script>
  297 +<style lang="less" scoped>
  298 +:deep(.el-button.is-text) {
  299 + margin-left: 0;
  300 + padding: 8px 10px;
  301 +}
  302 +</style>
... ...
yudao-ui-admin-vue3/src/router/index.ts
... ... @@ -29,7 +29,7 @@ const router = createRouter({
29 29 scrollBehavior: () => ({ left: 0, top: 0 })
30 30 })
31 31  
32   -// 路由白名单
  32 +// 路由不重定向白名单
33 33 const whiteList = [
34 34 '/login',
35 35 '/social-login',
... ... @@ -96,7 +96,6 @@ export const resetRouter = (): void =&gt; {
96 96 router.hasRoute(name) && router.removeRoute(name)
97 97 }
98 98 })
99   - routes: remainingRouter as RouteRecordRaw[]
100 99 }
101 100  
102 101 export const setupRouter = (app: App<Element>) => {
... ...
yudao-ui-admin-vue3/src/views/infra/job/job.data.ts
... ... @@ -79,7 +79,7 @@ const crudSchemas = reactive&lt;CrudSchema[]&gt;([
79 79 },
80 80 {
81 81 field: 'action',
82   - width: '400px',
  82 + width: '500px',
83 83 label: t('table.action'),
84 84 form: {
85 85 show: false
... ...
yudao-ui-admin-vue3/types/env.d.ts
... ... @@ -9,7 +9,13 @@ declare module &#39;*.vue&#39; {
9 9  
10 10 interface ImportMetaEnv {
11 11 readonly VITE_APP_TITLE: string
  12 + readonly VITE_PORT: number
  13 + readonly VITE_OPEN: boolean
  14 + readonly VITE_APP_TENANT_ENABLE: boolean
  15 + readonly VITE_BASE_URL: string
  16 + readonly VITE_UPLOAD_URL: string
12 17 readonly VITE_API_BASEPATH: string
  18 + readonly VITE_API_URL: string
13 19 readonly VITE_BASE_PATH: string
14 20 readonly VITE_DROP_DEBUGGER: string
15 21 readonly VITE_DROP_CONSOLE: string
... ...