build(package): 升级部分依赖

This commit is contained in:
Coffee-crocodile 2023-03-15 13:30:48 +08:00
parent b28a0bbb70
commit 965d464f1f
6 changed files with 49 additions and 29 deletions

View File

@ -1,3 +1,24 @@
{
"recommendations": ["Vue.volar"]
"recommendations": [
"formulahendry.auto-close-tag",
"formulahendry.auto-rename-tag",
"mikestead.dotenv",
"usernamehw.errorlens",
"dbaeumer.vscode-eslint",
"mhutchie.git-graph",
"donjayamanne.githistory",
"redjue.git-commit-plugin",
"lokalise.i18n-ally",
"antfu.iconify",
"kisstkondoros.vscode-gutter-preview",
"wix.vscode-import-cost",
"mariusalchimavicius.json-to-ts",
"christian-kohler.path-intellisense",
"proeagle.px2xx",
"meganrogge.template-string-converter",
"antfu.unocss",
"pflannery.vscode-versionlens",
"vue.volar",
"kamikillerto.vscode-colorize"
]
}

View File

@ -8,10 +8,8 @@
"eslint.format.enable": true,
//
"eslint.validate": ["typescript", "javascript", "vue", "html"],
//
"eslint.alwaysShowStatus": true,
//
"eslint.options": { "configFile": ".eslintrc.js" },
//
"editor.formatOnSave": true
"editor.formatOnSave": false,
}

View File

@ -1,3 +1,4 @@
import type { PluginOption } from 'vite';
import vue from './vue';
import compress from './compress';
import html from './html';
@ -19,7 +20,7 @@ export function setVitePlugins(env: ImportMetaEnv) {
}
// 是否依赖分析
if (env.VITE_VISUALIZER === 'Y') {
plugins.push(visualizer);
plugins.push(visualizer as PluginOption);
}
return plugins;
}

View File

@ -3,7 +3,7 @@
"private": true,
"version": "0.0.1",
"description": "",
"author": "iam see <chen.dev@foxmail.com> (https://github.com/iam-see/)",
"author": "iam-see <chen.dev@foxmail.com> (https://github.com/iam-see/)",
"license": "MIT",
"homepage": "https://github.com/iam-see/Ench-admin",
"keywords": [
@ -31,17 +31,17 @@
"./src/**/*.{vue,js,jsx,ts,tsx,json}": "eslint --fix"
},
"dependencies": {
"@vueuse/core": "^9.10.0",
"@vueuse/core": "^9.13.0",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12",
"axios": "^1.2.2",
"axios": "^1.3.4",
"crypto-js": "^4.1.1",
"echarts": "^5.4.1",
"md-editor-v3": "^2.7.2",
"pinia": "^2.0.28",
"md-editor-v3": "^2.9.3",
"pinia": "^2.0.33",
"pinia-plugin-persist": "^1.0.0",
"qs": "^6.11.0",
"vue": "^3.2.45",
"qs": "^6.11.1",
"vue": "^3.2.47",
"vue-qr": "^4.0.9",
"vue-router": "^4.1.6"
},
@ -52,13 +52,13 @@
"@iconify/vue": "^4.0.2",
"@types/crypto-js": "^4.1.1",
"@types/mockjs": "^1.0.7",
"@types/node": "^18.11.18",
"@types/node": "^18.15.3",
"@types/qs": "^6.9.7",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"@unocss/preset-attributify": "^0.48.3",
"@unocss/preset-uno": "^0.48.3",
"@unocss/vite": "^0.48.3",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"@unocss/preset-attributify": "^0.50.4",
"@unocss/preset-uno": "^0.50.4",
"@unocss/vite": "^0.50.4",
"@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue-jsx": "^3.0.0",
"@vue/eslint-config-typescript": "^11.0.2",
@ -67,21 +67,21 @@
"cz-customizable": "^7.0.0",
"eslint": "^8.31.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-vue": "^9.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-vue": "^9.9.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.0",
"mockjs": "^1.1.0",
"naive-ui": "^2.34.3",
"rollup-plugin-visualizer": "^5.9.0",
"typescript": "^4.9.4",
"unplugin-icons": "^0.15.1",
"unplugin-vue-components": "^0.22.12",
"vite": "^4.0.4",
"unplugin-icons": "^0.15.3",
"unplugin-vue-components": "^0.24.1",
"vite": "^4.1.4",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-html": "^3.2.0",
"vite-plugin-mock": "^2.9.6",
"vite-plugin-svg-icons": "^2.0.1",
"vue-tsc": "^1.0.24"
"vue-tsc": "^1.2.0"
}
}

View File

@ -18,7 +18,7 @@ export function showError(error: Service.RequestError) {
*/
export async function transformRequestData(requestData: any, contentType?: string) {
// application/json类型不处理
let data = clearInvalidParameters(requestData);
let data: any = clearInvalidParameters(requestData);
// let data = requestData;
// form类型转换

View File

@ -1,7 +1,7 @@
<template>
<div class="wh-full flex-center bg-[#EBECF0]">
<n-el
class="w-1400px h-70% flex-center shadow-2xl b-rd-22px p-10px"
class="w-1400px h-80% flex-center shadow-2xl b-rd-22px p-10px"
style="background: var(--card-color)"
>
<n-grid
@ -163,9 +163,9 @@ const authStore = useAuthStore();
const appStore = useAppStore();
const formValue = ref({
account: '',
pwd: '',
code: '',
account: 'admin',
pwd: '000000',
code: '1234',
});
const isRemember = ref(false);