From 044a2058ed3d3688da8f0fdb2b11e859d521339e Mon Sep 17 00:00:00 2001 From: "liupo.wu" Date: Mon, 4 Apr 2022 18:52:21 +0800 Subject: [PATCH 1/6] fix: move js to ts --- index.html | 17 +++-------- mock/{crud.js => crud.ts} | 0 mock/{menu.js => menu.ts} | 0 mock/{user.js => user.ts} | 0 package.json | 5 ++-- src/api/crud/{index.js => index.ts} | 0 src/api/{user.js => user.ts} | 0 src/{axios.js => axios.ts} | 0 .../basic-video/{plugin.js => plugin.ts} | 0 src/config/{env.js => env.ts} | 0 src/config/{website.js => website.ts} | 0 src/{error.js => error.ts} | 0 src/lang/{en.js => en.ts} | 0 src/lang/{index.js => index.ts} | 0 src/lang/{ja.js => ja.ts} | 0 src/lang/{zh.js => zh.ts} | 0 src/mac/mode/{index.js => index.ts} | 0 src/{main.js => main.ts} | 0 src/mixins/{crud.js => crud.ts} | 0 src/mixins/{index.js => index.ts} | 0 src/{mockProdServer.js => mockProdServer.ts} | 0 src/option/crud/{index.js => index.ts} | 0 src/{permission.js => permission.ts} | 0 src/router/{avue-router.js => avue-router.ts} | 0 src/router/{index.js => index.ts} | 0 src/router/page/{index.js => index.ts} | 0 src/router/views/{index.js => index.ts} | 0 src/store/{getters.js => getters.ts} | 0 src/store/{index.js => index.ts} | 0 src/store/modules/{common.js => common.ts} | 0 src/store/modules/{logs.js => logs.ts} | 0 src/store/modules/{tags.js => tags.ts} | 0 src/store/modules/{user.js => user.ts} | 0 src/utils/{auth.js => auth.ts} | 0 src/utils/{store.js => store.ts} | 0 src/utils/{util.js => util.ts} | 0 src/utils/{validate.js => validate.ts} | 0 tsconfig.json | 28 +++++++++++++++++++ vite.config.js => vite.config.ts | 3 +- yarn.lock | 5 ++++ 40 files changed, 42 insertions(+), 16 deletions(-) rename mock/{crud.js => crud.ts} (100%) rename mock/{menu.js => menu.ts} (100%) rename mock/{user.js => user.ts} (100%) rename src/api/crud/{index.js => index.ts} (100%) rename src/api/{user.js => user.ts} (100%) rename src/{axios.js => axios.ts} (100%) rename src/components/basic-video/{plugin.js => plugin.ts} (100%) rename src/config/{env.js => env.ts} (100%) rename src/config/{website.js => website.ts} (100%) rename src/{error.js => error.ts} (100%) rename src/lang/{en.js => en.ts} (100%) rename src/lang/{index.js => index.ts} (100%) rename src/lang/{ja.js => ja.ts} (100%) rename src/lang/{zh.js => zh.ts} (100%) rename src/mac/mode/{index.js => index.ts} (100%) rename src/{main.js => main.ts} (100%) rename src/mixins/{crud.js => crud.ts} (100%) rename src/mixins/{index.js => index.ts} (100%) rename src/{mockProdServer.js => mockProdServer.ts} (100%) rename src/option/crud/{index.js => index.ts} (100%) rename src/{permission.js => permission.ts} (100%) rename src/router/{avue-router.js => avue-router.ts} (100%) rename src/router/{index.js => index.ts} (100%) rename src/router/page/{index.js => index.ts} (100%) rename src/router/views/{index.js => index.ts} (100%) rename src/store/{getters.js => getters.ts} (100%) rename src/store/{index.js => index.ts} (100%) rename src/store/modules/{common.js => common.ts} (100%) rename src/store/modules/{logs.js => logs.ts} (100%) rename src/store/modules/{tags.js => tags.ts} (100%) rename src/store/modules/{user.js => user.ts} (100%) rename src/utils/{auth.js => auth.ts} (100%) rename src/utils/{store.js => store.ts} (100%) rename src/utils/{util.js => util.ts} (100%) rename src/utils/{validate.js => validate.ts} (100%) create mode 100644 tsconfig.json rename vite.config.js => vite.config.ts (95%) diff --git a/index.html b/index.html index 4368eb1..88ee924 100755 --- a/index.html +++ b/index.html @@ -1,12 +1,12 @@ - + - + Avue-cli 通用管理 系统快速开发框架 @@ -28,16 +28,7 @@ - - + - \ No newline at end of file + diff --git a/mock/crud.js b/mock/crud.ts similarity index 100% rename from mock/crud.js rename to mock/crud.ts diff --git a/mock/menu.js b/mock/menu.ts similarity index 100% rename from mock/menu.js rename to mock/menu.ts diff --git a/mock/user.js b/mock/user.ts similarity index 100% rename from mock/user.js rename to mock/user.ts diff --git a/package.json b/package.json index 60c5689..2fb276c 100755 --- a/package.json +++ b/package.json @@ -2,9 +2,9 @@ "name": "avue-cli", "version": "3.0.0", "scripts": { - "dev": "vite --host", + "dev": "vite", "build": "vite build", - "serve": "vite preview --host" + "serve": "vite preview" }, "dependencies": { "@element-plus/icons-vue": "^1.1.4", @@ -27,6 +27,7 @@ "@vitejs/plugin-vue": "^1.3.0", "@vue/compiler-sfc": "^3.0.5", "sass": "^1.37.5", + "typescript": "^4.6.3", "vite": "^2.4.4" } } diff --git a/src/api/crud/index.js b/src/api/crud/index.ts similarity index 100% rename from src/api/crud/index.js rename to src/api/crud/index.ts diff --git a/src/api/user.js b/src/api/user.ts similarity index 100% rename from src/api/user.js rename to src/api/user.ts diff --git a/src/axios.js b/src/axios.ts similarity index 100% rename from src/axios.js rename to src/axios.ts diff --git a/src/components/basic-video/plugin.js b/src/components/basic-video/plugin.ts similarity index 100% rename from src/components/basic-video/plugin.js rename to src/components/basic-video/plugin.ts diff --git a/src/config/env.js b/src/config/env.ts similarity index 100% rename from src/config/env.js rename to src/config/env.ts diff --git a/src/config/website.js b/src/config/website.ts similarity index 100% rename from src/config/website.js rename to src/config/website.ts diff --git a/src/error.js b/src/error.ts similarity index 100% rename from src/error.js rename to src/error.ts diff --git a/src/lang/en.js b/src/lang/en.ts similarity index 100% rename from src/lang/en.js rename to src/lang/en.ts diff --git a/src/lang/index.js b/src/lang/index.ts similarity index 100% rename from src/lang/index.js rename to src/lang/index.ts diff --git a/src/lang/ja.js b/src/lang/ja.ts similarity index 100% rename from src/lang/ja.js rename to src/lang/ja.ts diff --git a/src/lang/zh.js b/src/lang/zh.ts similarity index 100% rename from src/lang/zh.js rename to src/lang/zh.ts diff --git a/src/mac/mode/index.js b/src/mac/mode/index.ts similarity index 100% rename from src/mac/mode/index.js rename to src/mac/mode/index.ts diff --git a/src/main.js b/src/main.ts similarity index 100% rename from src/main.js rename to src/main.ts diff --git a/src/mixins/crud.js b/src/mixins/crud.ts similarity index 100% rename from src/mixins/crud.js rename to src/mixins/crud.ts diff --git a/src/mixins/index.js b/src/mixins/index.ts similarity index 100% rename from src/mixins/index.js rename to src/mixins/index.ts diff --git a/src/mockProdServer.js b/src/mockProdServer.ts similarity index 100% rename from src/mockProdServer.js rename to src/mockProdServer.ts diff --git a/src/option/crud/index.js b/src/option/crud/index.ts similarity index 100% rename from src/option/crud/index.js rename to src/option/crud/index.ts diff --git a/src/permission.js b/src/permission.ts similarity index 100% rename from src/permission.js rename to src/permission.ts diff --git a/src/router/avue-router.js b/src/router/avue-router.ts similarity index 100% rename from src/router/avue-router.js rename to src/router/avue-router.ts diff --git a/src/router/index.js b/src/router/index.ts similarity index 100% rename from src/router/index.js rename to src/router/index.ts diff --git a/src/router/page/index.js b/src/router/page/index.ts similarity index 100% rename from src/router/page/index.js rename to src/router/page/index.ts diff --git a/src/router/views/index.js b/src/router/views/index.ts similarity index 100% rename from src/router/views/index.js rename to src/router/views/index.ts diff --git a/src/store/getters.js b/src/store/getters.ts similarity index 100% rename from src/store/getters.js rename to src/store/getters.ts diff --git a/src/store/index.js b/src/store/index.ts similarity index 100% rename from src/store/index.js rename to src/store/index.ts diff --git a/src/store/modules/common.js b/src/store/modules/common.ts similarity index 100% rename from src/store/modules/common.js rename to src/store/modules/common.ts diff --git a/src/store/modules/logs.js b/src/store/modules/logs.ts similarity index 100% rename from src/store/modules/logs.js rename to src/store/modules/logs.ts diff --git a/src/store/modules/tags.js b/src/store/modules/tags.ts similarity index 100% rename from src/store/modules/tags.js rename to src/store/modules/tags.ts diff --git a/src/store/modules/user.js b/src/store/modules/user.ts similarity index 100% rename from src/store/modules/user.js rename to src/store/modules/user.ts diff --git a/src/utils/auth.js b/src/utils/auth.ts similarity index 100% rename from src/utils/auth.js rename to src/utils/auth.ts diff --git a/src/utils/store.js b/src/utils/store.ts similarity index 100% rename from src/utils/store.js rename to src/utils/store.ts diff --git a/src/utils/util.js b/src/utils/util.ts similarity index 100% rename from src/utils/util.js rename to src/utils/util.ts diff --git a/src/utils/validate.js b/src/utils/validate.ts similarity index 100% rename from src/utils/validate.js rename to src/utils/validate.ts diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..54252e5 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "target": "esnext", + "module": "esnext", + // "strict": true, + "jsx": "preserve", + "importHelpers": true, + "moduleResolution": "node", + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "sourceMap": true, + "baseUrl": ".", + "types": ["webpack-env"], + "paths": { + "@/*": ["src/*"] + }, + "lib": ["esnext", "dom", "dom.iterable", "scripthost"] + }, + "include": [ + "src/**/*.ts", + "src/**/*.tsx", + "src/**/*.vue", + "tests/**/*.ts", + "tests/**/*.tsx" + ], + "exclude": ["node_modules"] +} diff --git a/vite.config.js b/vite.config.ts similarity index 95% rename from vite.config.js rename to vite.config.ts index 9834112..5379a46 100755 --- a/vite.config.js +++ b/vite.config.ts @@ -1,7 +1,8 @@ import { viteMockServe } from "vite-plugin-mock"; import { defineConfig, loadEnv } from 'vite' import vue from '@vitejs/plugin-vue' -const { resolve } = require('path') +import { resolve } from 'path' + // https://vitejs.dev/config/ export default ({ mode }) => { const config = loadEnv(mode, './') diff --git a/yarn.lock b/yarn.lock index c710807..9de2153 100644 --- a/yarn.lock +++ b/yarn.lock @@ -966,6 +966,11 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" +typescript@^4.6.3: + version "4.6.3" + resolved "https://registry.npmmirror.com/typescript/-/typescript-4.6.3.tgz#eefeafa6afdd31d725584c67a0eaba80f6fc6c6c" + integrity sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw== + unpipe@~1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" -- Gitee From 088439da3605f0b9927d3b528ef8bed2620bc39e Mon Sep 17 00:00:00 2001 From: "liupo.wu" Date: Mon, 4 Apr 2022 19:03:38 +0800 Subject: [PATCH 2/6] fix: move js to ts --- src/App.vue | 2 +- src/components/basic-block/main.vue | 2 +- src/components/basic-container/main.vue | 2 +- src/components/basic-video/main.vue | 2 +- src/components/error-page/403.vue | 2 +- src/components/error-page/404.vue | 2 +- src/components/error-page/500.vue | 2 +- src/components/iframe/main.vue | 4 ++-- src/mac/index.vue | 4 ++-- src/mac/lock.vue | 4 ++-- src/mac/login.vue | 4 ++-- src/mac/mode/index.vue | 4 ++-- src/page/index/index.vue | 4 ++-- src/page/index/logo.vue | 4 ++-- src/page/index/search.vue | 2 +- src/page/index/setting.vue | 4 ++-- src/page/index/sidebar/index.vue | 2 +- src/page/index/sidebar/sidebarItem.vue | 2 +- src/page/index/tags.vue | 2 +- src/page/index/top/index.vue | 4 ++-- src/page/index/top/top-full.vue | 4 ++-- src/page/index/top/top-lang.vue | 2 +- src/page/index/top/top-lock.vue | 2 +- src/page/index/top/top-logs.vue | 2 +- src/page/index/top/top-menu.vue | 4 ++-- src/page/index/top/top-search.vue | 4 ++-- src/page/index/top/top-theme.vue | 2 +- src/page/lock/index.vue | 4 ++-- src/page/login/authredirect.vue | 2 +- src/page/login/codelogin.vue | 2 +- src/page/login/facelogin.vue | 4 ++-- src/page/login/index.vue | 2 +- src/page/login/thirdlogin.vue | 2 +- src/page/login/userlogin.vue | 2 +- src/views/user/info.vue | 2 +- src/views/user/setting.vue | 2 +- src/views/util/about.vue | 2 +- src/views/util/affix.vue | 2 +- src/views/util/cache.vue | 2 +- src/views/util/crud.vue | 2 +- src/views/util/deep.vue | 2 +- src/views/util/detail.vue | 4 ++-- src/views/util/form.vue | 4 ++-- src/views/util/logs.vue | 4 ++-- src/views/util/params.vue | 4 ++-- src/views/util/store.vue | 2 +- src/views/util/table.vue | 4 ++-- src/views/util/tags.vue | 4 ++-- src/views/util/test.vue | 2 +- src/views/util/top.vue | 2 +- src/views/wel/dashboard.vue | 2 +- src/views/wel/index.vue | 2 +- 52 files changed, 72 insertions(+), 72 deletions(-) diff --git a/src/App.vue b/src/App.vue index e5f4f16..65c18a0 100755 --- a/src/App.vue +++ b/src/App.vue @@ -5,7 +5,7 @@ - \ No newline at end of file + diff --git a/src/mac/login.vue b/src/mac/login.vue index 00a8e47..9df39b4 100644 --- a/src/mac/login.vue +++ b/src/mac/login.vue @@ -27,7 +27,7 @@ - \ No newline at end of file + diff --git a/src/mac/mode/index.vue b/src/mac/mode/index.vue index ccca19e..a9ec88b 100644 --- a/src/mac/mode/index.vue +++ b/src/mac/mode/index.vue @@ -55,7 +55,7 @@ - \ No newline at end of file + diff --git a/src/page/index/logo.vue b/src/page/index/logo.vue index a75ca99..abd0ac2 100755 --- a/src/page/index/logo.vue +++ b/src/page/index/logo.vue @@ -16,7 +16,7 @@ - \ No newline at end of file + diff --git a/src/page/index/search.vue b/src/page/index/search.vue index 90b40b9..64141c8 100755 --- a/src/page/index/search.vue +++ b/src/page/index/search.vue @@ -34,7 +34,7 @@ - \ No newline at end of file + diff --git a/src/page/index/top/top-full.vue b/src/page/index/top/top-full.vue index 981dfdd..936ef9f 100644 --- a/src/page/index/top/top-full.vue +++ b/src/page/index/top/top-full.vue @@ -2,7 +2,7 @@ - \ No newline at end of file + diff --git a/src/page/index/top/top-lang.vue b/src/page/index/top/top-lang.vue index bc43967..39f04a0 100755 --- a/src/page/index/top/top-lang.vue +++ b/src/page/index/top/top-lang.vue @@ -15,7 +15,7 @@ - \ No newline at end of file + diff --git a/src/page/index/top/top-search.vue b/src/page/index/top/top-search.vue index 5a15439..7bcdb16 100755 --- a/src/page/index/top/top-search.vue +++ b/src/page/index/top/top-search.vue @@ -14,7 +14,7 @@ - \ No newline at end of file + diff --git a/src/page/login/authredirect.vue b/src/page/login/authredirect.vue index 15cbce1..d35d6c2 100755 --- a/src/page/login/authredirect.vue +++ b/src/page/login/authredirect.vue @@ -2,7 +2,7 @@
- \ No newline at end of file + diff --git a/src/page/login/index.vue b/src/page/login/index.vue index 647fe97..e7d1a3c 100755 --- a/src/page/login/index.vue +++ b/src/page/login/index.vue @@ -34,7 +34,7 @@ - diff --git a/src/views/util/cache.vue b/src/views/util/cache.vue index 96431d6..222573c 100755 --- a/src/views/util/cache.vue +++ b/src/views/util/cache.vue @@ -10,7 +10,7 @@ - \ No newline at end of file + diff --git a/src/views/util/form.vue b/src/views/util/form.vue index d089710..7800c6f 100644 --- a/src/views/util/form.vue +++ b/src/views/util/form.vue @@ -6,7 +6,7 @@ - \ No newline at end of file + diff --git a/src/views/util/logs.vue b/src/views/util/logs.vue index a6d5dc5..a9f34ed 100755 --- a/src/views/util/logs.vue +++ b/src/views/util/logs.vue @@ -6,7 +6,7 @@ - \ No newline at end of file + diff --git a/src/views/util/params.vue b/src/views/util/params.vue index 92e0fba..67856d7 100755 --- a/src/views/util/params.vue +++ b/src/views/util/params.vue @@ -8,7 +8,7 @@ - \ No newline at end of file + diff --git a/src/views/util/store.vue b/src/views/util/store.vue index 68fa073..794af68 100755 --- a/src/views/util/store.vue +++ b/src/views/util/store.vue @@ -38,7 +38,7 @@ - \ No newline at end of file + diff --git a/src/views/util/tags.vue b/src/views/util/tags.vue index de4ac95..2357594 100755 --- a/src/views/util/tags.vue +++ b/src/views/util/tags.vue @@ -11,11 +11,11 @@ - \ No newline at end of file + diff --git a/src/views/util/test.vue b/src/views/util/test.vue index f87cb14..93867be 100755 --- a/src/views/util/test.vue +++ b/src/views/util/test.vue @@ -2,7 +2,7 @@ 测试页 - diff --git a/src/views/wel/dashboard.vue b/src/views/wel/dashboard.vue index 96aa79a..80d4cf8 100755 --- a/src/views/wel/dashboard.vue +++ b/src/views/wel/dashboard.vue @@ -135,7 +135,7 @@ - -- Gitee From 8cf484843c5c28fcc3d6c19865fd53bca28031a1 Mon Sep 17 00:00:00 2001 From: "liupo.wu" Date: Mon, 4 Apr 2022 19:17:06 +0800 Subject: [PATCH 4/6] rollback --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 88ee924..e91f354 100755 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + -- Gitee From 83c69bb23120b56ce14d7557d6750cfb94b3ce8e Mon Sep 17 00:00:00 2001 From: "liupo.wu" Date: Mon, 4 Apr 2022 19:21:07 +0800 Subject: [PATCH 5/6] fix:mv utils --- src/api/crud/index.ts | 2 +- src/api/user.ts | 4 ++-- src/main.ts | 4 ++-- src/{ => utils}/axios.ts | 0 src/{ => utils}/error.ts | 2 +- src/{ => utils}/mockProdServer.ts | 4 ++-- src/{ => utils}/permission.ts | 8 ++++---- 7 files changed, 12 insertions(+), 12 deletions(-) rename src/{ => utils}/axios.ts (100%) rename src/{ => utils}/error.ts (95%) rename src/{ => utils}/mockProdServer.ts (68%) rename src/{ => utils}/permission.ts (94%) diff --git a/src/api/crud/index.ts b/src/api/crud/index.ts index 12a3f2c..8cd4ff8 100755 --- a/src/api/crud/index.ts +++ b/src/api/crud/index.ts @@ -1,5 +1,5 @@ -import request from '@/axios'; +import request from '@/utils/axios'; import { baseUrl } from '@/config/env'; export const list = (data) => { return request({ diff --git a/src/api/user.ts b/src/api/user.ts index 6966a1c..5ed9b72 100755 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -1,4 +1,4 @@ -import request from '@/axios'; +import request from '@/utils/axios'; import { baseUrl } from '@/config/env'; export const loginByUsername = (username, password, code, redomStr) => request({ url: baseUrl + '/user/login', @@ -49,4 +49,4 @@ export const logout = () => request({ isToken: false }, method: 'get' -}) \ No newline at end of file +}) diff --git a/src/main.ts b/src/main.ts index 92b4b23..c121ff7 100755 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import website from './config/website' -import axios from './axios'; +import axios from './utils/axios'; import router from './router/'; import store from './store'; import i18n from './lang/'; @@ -9,7 +9,7 @@ import 'element-plus/dist/index.css' import Avue from '@smallwei/avue'; import '@smallwei/avue/lib/index.css'; import { getScreen } from './utils/util' -import './permission'; +import './utils/permission'; import error from '@/error'; import basicBlock from '@/components/basic-block/main.vue' import basicContainer from '@/components/basic-container/main.vue' diff --git a/src/axios.ts b/src/utils/axios.ts similarity index 100% rename from src/axios.ts rename to src/utils/axios.ts diff --git a/src/error.ts b/src/utils/error.ts similarity index 95% rename from src/error.ts rename to src/utils/error.ts index 06358c9..cb195e1 100755 --- a/src/error.ts +++ b/src/utils/error.ts @@ -1,4 +1,4 @@ -import store from './store' +import store from '../store' export default { install: (app) => { app.config.errorHandler = (err, vm, info) => { diff --git a/src/mockProdServer.ts b/src/utils/mockProdServer.ts similarity index 68% rename from src/mockProdServer.ts rename to src/utils/mockProdServer.ts index 3f4ee69..5e65b20 100644 --- a/src/mockProdServer.ts +++ b/src/utils/mockProdServer.ts @@ -1,7 +1,7 @@ import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer'; -import menuModule from '../mock/menu'; -import userModule from '../mock/user'; +import menuModule from '../../mock/menu'; +import userModule from '../../mock/user'; export const setupProdMockServer = () => { createProdMockServer([...menuModule, ...userModule]); } diff --git a/src/permission.ts b/src/utils/permission.ts similarity index 94% rename from src/permission.ts rename to src/utils/permission.ts index ac66928..271e484 100755 --- a/src/permission.ts +++ b/src/utils/permission.ts @@ -1,9 +1,9 @@ -import router from './router/' -import store from './store' -import { validatenull } from '@/utils/validate' +import router from '../router' +import store from '../store' import { getToken } from '@/utils/auth' import NProgress from 'nprogress' // progress bar import 'nprogress/nprogress.css' // progress bar style + NProgress.configure({ showSpinner: false }); const lockPage = '/lock'; //锁屏页 router.beforeEach((to, from, next) => { @@ -59,4 +59,4 @@ router.afterEach(to => { let title = router.$avueRouter.generateTitle(to) router.$avueRouter.setTitle(title); store.commit('SET_IS_SEARCH', false) -}); \ No newline at end of file +}); -- Gitee From 406c3afa9e6d7364631c87c44b54863d00f391ab Mon Sep 17 00:00:00 2001 From: "liupo.wu" Date: Mon, 4 Apr 2022 19:25:13 +0800 Subject: [PATCH 6/6] fix: utils --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index c121ff7..623217c 100755 --- a/src/main.ts +++ b/src/main.ts @@ -10,7 +10,7 @@ import Avue from '@smallwei/avue'; import '@smallwei/avue/lib/index.css'; import { getScreen } from './utils/util' import './utils/permission'; -import error from '@/error'; +import error from './utils/error'; import basicBlock from '@/components/basic-block/main.vue' import basicContainer from '@/components/basic-container/main.vue' import App from './App.vue' -- Gitee