更新依赖

This commit is contained in:
Hooray Hu 2024-07-18 11:28:26 +08:00
parent f417cbfbe7
commit 9bba33213e
6 changed files with 2134 additions and 1488 deletions

View File

@ -12,6 +12,10 @@ export default antfu(
rules: {
'eslint-comments/no-unlimited-disable': 'off',
'curly': ['error', 'all'],
'ts/no-unused-expressions': ['error', {
allowShortCircuit: true,
allowTernary: true,
}],
},
},
{

View File

@ -24,7 +24,7 @@
"@headlessui/vue": "^1.7.22",
"@imengyu/vue3-context-menu": "^1.4.1",
"@tinymce/tinymce-vue": "^6.0.1",
"@visactor/vchart": "^1.11.6",
"@visactor/vchart": "^1.11.9",
"@vueuse/core": "^10.11.0",
"@vueuse/integrations": "^10.11.0",
"animate.css": "^4.1.1",
@ -34,40 +34,40 @@
"defu": "^6.1.4",
"disable-devtool": "^0.3.7",
"echarts": "^5.5.1",
"element-plus": "^2.7.6",
"eruda": "^3.0.1",
"element-plus": "^2.7.7",
"eruda": "^3.2.0",
"floating-vue": "5.2.2",
"hotkeys-js": "^3.13.7",
"lodash-es": "^4.17.21",
"mitt": "^3.0.1",
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
"overlayscrollbars": "^2.9.1",
"overlayscrollbars": "^2.9.2",
"overlayscrollbars-vue": "^0.5.9",
"path-browserify": "^1.0.1",
"path-to-regexp": "^7.0.0",
"path-to-regexp": "^7.1.0",
"pinia": "^2.1.7",
"print-js": "^1.6.0",
"qrcode": "^1.5.3",
"qs": "^6.12.1",
"qs": "^6.12.3",
"scule": "^1.3.0",
"splitpanes": "^3.1.5",
"swiper": "^11.1.4",
"tinymce": "^7.2.0",
"swiper": "^11.1.5",
"tinymce": "^7.2.1",
"vconsole": "^3.15.1",
"vue": "^3.4.31",
"vue": "^3.4.32",
"vue-currency-input": "^3.1.0",
"vue-esign": "^1.1.4",
"vue-hooks-plus": "^2.2.0",
"vue-hooks-plus": "^2.2.1",
"vue-m-message": "^4.0.2",
"vue-router": "^4.4.0",
"vue3-count-to": "^1.1.2",
"vxe-table": "^4.7.16",
"xe-utils": "^3.5.27"
"xe-utils": "^3.5.28"
},
"devDependencies": {
"@antfu/eslint-config": "2.21.2",
"@iconify/json": "^2.2.223",
"@antfu/eslint-config": "2.23.0",
"@iconify/json": "^2.2.228",
"@iconify/vue": "^4.1.2",
"@stylistic/stylelint-config": "^1.0.1",
"@types/lodash-es": "^4.17.12",
@ -77,45 +77,45 @@
"@types/qrcode": "^1.5.5",
"@types/qs": "^6.9.15",
"@types/splitpanes": "^2.2.6",
"@unocss/eslint-plugin": "^0.61.0",
"@unocss/eslint-plugin": "^0.61.5",
"@vitejs/plugin-legacy": "^5.4.1",
"@vitejs/plugin-vue": "^5.0.5",
"@vitejs/plugin-vue-jsx": "^4.0.0",
"archiver": "^7.0.1",
"autoprefixer": "^10.4.19",
"boxen": "^7.1.1",
"eslint": "^9.6.0",
"boxen": "^8.0.0",
"eslint": "^9.7.0",
"esno": "^4.7.0",
"fs-extra": "^11.2.0",
"http-server": "^14.1.1",
"inquirer": "^9.3.1",
"inquirer": "^10.0.3",
"lint-staged": "^15.2.7",
"npm-run-all2": "^6.2.0",
"npm-run-all2": "^6.2.2",
"picocolors": "^1.0.1",
"plop": "^4.0.1",
"postcss": "^8.4.38",
"sass": "^1.77.6",
"postcss": "^8.4.39",
"sass": "^1.77.8",
"simple-git-hooks": "^2.11.1",
"stylelint": "^16.6.1",
"stylelint": "^16.7.0",
"stylelint-config-recess-order": "^5.0.1",
"stylelint-config-standard-scss": "^13.1.0",
"stylelint-config-standard-vue": "^1.0.0",
"stylelint-scss": "^6.3.2",
"stylelint-scss": "^6.4.1",
"svgo": "^3.3.2",
"typescript": "^5.5.2",
"unocss": "^0.61.0",
"unplugin-auto-import": "^0.17.6",
"unplugin-turbo-console": "^1.8.9",
"unplugin-vue-components": "^0.27.2",
"vite": "^5.3.2",
"typescript": "^5.5.3",
"unocss": "^0.61.5",
"unplugin-auto-import": "^0.18.0",
"unplugin-turbo-console": "^1.9.11",
"unplugin-vue-components": "^0.27.3",
"vite": "^5.3.4",
"vite-plugin-banner": "^0.7.1",
"vite-plugin-compression2": "^1.1.1",
"vite-plugin-compression2": "^1.1.2",
"vite-plugin-fake-server": "^2.1.1",
"vite-plugin-pages": "^0.32.3",
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-vue-devtools": "^7.3.5",
"vite-plugin-vue-devtools": "^7.3.6",
"vite-plugin-vue-meta-layouts": "^0.4.3",
"vue-tsc": "^2.0.22"
"vue-tsc": "^2.0.26"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged",

File diff suppressed because it is too large Load Diff

View File

@ -34,18 +34,21 @@ function go(type: number) {
onBeforeRouteLeave((to, from) => {
const componentName = from.matched.at(-1)?.components?.default.name
if (!componentName) {
return
}
if (openKeepAlive.value) {
//
// name keepAliveExampleDetail keepAliveExampleNestedDetail name keep-alive
if (['keepAliveExampleDetail', 'keepAliveExampleNestedDetail'].includes(to.name as string)) {
componentName && keepAliveStore.add(componentName)
keepAliveStore.add(componentName)
}
else {
componentName && keepAliveStore.remove(componentName)
keepAliveStore.remove(componentName)
}
}
else {
componentName && keepAliveStore.remove(componentName)
keepAliveStore.remove(componentName)
}
})
</script>

View File

@ -51,7 +51,7 @@ const loginRules = ref<FormRules>({
],
})
function handleLogin() {
loginFormRef.value && loginFormRef.value.validate((valid) => {
loginFormRef.value?.validate((valid) => {
if (valid) {
loading.value = true
userStore.login(loginForm.value).then(() => {
@ -108,7 +108,7 @@ function handleRegister() {
message: '注册模块仅提供界面演示,无实际功能,需开发者自行扩展',
type: 'warning',
})
registerFormRef.value && registerFormRef.value.validate((valid) => {
registerFormRef.value?.validate((valid) => {
if (valid) {
//
}
@ -139,7 +139,7 @@ function handleReset() {
message: '重置密码仅提供界面演示,无实际功能,需开发者自行扩展',
type: 'info',
})
resetFormRef.value && resetFormRef.value.validate((valid) => {
resetFormRef.value?.validate((valid) => {
if (valid) {
//
}

View File

@ -46,7 +46,7 @@ const rules = ref<FormRules>({
})
function onSubmit() {
formRef.value && formRef.value.validate((valid) => {
formRef.value?.validate((valid) => {
if (valid) {
userStore.editPassword(form.value).then(() => {
ElMessage({