diff --git a/.eslintrc b/.eslintrc
index 9f3e6cf..5697453 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -17,7 +17,7 @@
"defineProps": "readonly",
"defineEmits": "readonly"
},
- "plugins": ["vue", "@typescript-eslint"],
+ "plugins": ["vue", "@typescript-eslint", "simple-import-sort"],
"parserOptions": {
"parser": "@typescript-eslint/parser",
"sourceType": "module",
@@ -65,7 +65,9 @@
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
- "class-methods-use-this": "off" // 因为AxiosCancel必须实例化而能静态化所以加的规则,如果有办法解决可以取消
+ "class-methods-use-this": "off", // 因为AxiosCancel必须实例化而能静态化所以加的规则,如果有办法解决可以取消
+ "simple-import-sort/imports": "error",
+ "simple-import-sort/exports": "error"
},
"overrides": [
{
diff --git a/mock/index.ts b/mock/index.ts
index a02319d..171c80d 100644
--- a/mock/index.ts
+++ b/mock/index.ts
@@ -1,5 +1,5 @@
-import { MockMethod } from 'vite-plugin-mock';
import Mock from 'mockjs';
+import { MockMethod } from 'vite-plugin-mock';
export default [
{
@@ -221,6 +221,7 @@ export default [
component: '/form/step/index',
meta: {
title: '分步表单页',
+ keepAlive: false,
},
},
],
diff --git a/package.json b/package.json
index 8adc0de..d29b745 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "tdesign-vue-next-starter",
- "version": "0.7.3",
+ "version": "0.7.4",
"scripts": {
"dev:mock": "vite --open --mode mock",
"dev": "vite --open --mode development",
@@ -19,20 +19,19 @@
"test:coverage": "echo \"no test:coverage specified,work in process\""
},
"dependencies": {
- "@types/nprogress": "^0.2.0",
- "axios": "^1.2.6",
+ "axios": "^1.3.4",
"dayjs": "^1.11.7",
"echarts": "5.1.2",
"lodash": "^4.17.21",
"nprogress": "^0.2.0",
- "pinia": "^2.0.28",
- "pinia-plugin-persistedstate": "^3.0.2",
- "qrcode.vue": "^3.3.3",
- "qs": "^6.11.0",
- "tdesign-icons-vue-next": "^0.1.7",
- "tdesign-vue-next": "^1.0.8",
+ "pinia": "^2.0.33",
+ "pinia-plugin-persistedstate": "^3.1.0",
+ "qrcode.vue": "^3.3.4",
+ "qs": "^6.11.1",
+ "tdesign-icons-vue-next": "^0.1.8",
+ "tdesign-vue-next": "^1.2.2",
"tvision-color": "^1.5.0",
- "vue": "^3.2.45",
+ "vue": "^3.2.47",
"vue-clipboard3": "^2.0.0",
"vue-router": "~4.1.6"
},
@@ -41,13 +40,13 @@
"@commitlint/config-conventional": "^17.3.0",
"@types/echarts": "^4.9.16",
"@types/lodash": "^4.14.191",
+ "@types/nprogress": "^0.2.0",
"@types/qs": "^6.9.7",
- "@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.47.1",
"@typescript-eslint/parser": "^5.47.1",
"@vitejs/plugin-vue": "^3.2.0",
- "@vitejs/plugin-vue-jsx": "^1.1.7",
- "@vue/compiler-sfc": "^3.2.45",
+ "@vitejs/plugin-vue-jsx": "^1.3.10",
+ "@vue/compiler-sfc": "^3.2.47",
"@vue/eslint-config-typescript": "^11.0.2",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
@@ -56,6 +55,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
+ "eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-vue": "^9.8.0",
"eslint-plugin-vue-scoped-css": "^2.2.0",
"husky": "^8.0.2",
@@ -69,11 +69,11 @@
"stylelint-config-prettier": "~9.0.4",
"stylelint-less": "1.0.6",
"stylelint-order": "~6.0.1",
- "typescript": "~4.9.4",
- "vite": "^3.0.3",
+ "typescript": "~4.9.5",
+ "vite": "^3.2.5",
"vite-plugin-mock": "^2.9.6",
"vite-svg-loader": "^4.0.0",
- "vue-tsc": "^1.0.19"
+ "vue-tsc": "^1.2.0"
},
"config": {
"commitizen": {
diff --git a/src/App.vue b/src/App.vue
index ef6f2f6..2ed5814 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -3,6 +3,7 @@