build(deps): 升级依赖

This commit is contained in:
Soybean 2021-12-15 13:47:02 +08:00
parent 51c744c8e2
commit f3c86efbe5
6 changed files with 505 additions and 496 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
pnpm lint:fix
pnpm lint:fix && pnpm vtsc

View File

@ -31,7 +31,7 @@
}
},
"dependencies": {
"@antv/g2plot": "^2.4.0",
"@antv/g2plot": "^2.4.1",
"@better-scroll/core": "^2.4.2",
"@vueuse/core": "^7.3.0",
"axios": "^0.24.0",
@ -39,13 +39,13 @@
"clipboard": "^2.0.8",
"dayjs": "^1.10.7",
"form-data": "^4.0.0",
"naive-ui": "^2.21.5",
"naive-ui": "^2.22.0",
"pinia": "^2.0.6",
"print-js": "^1.6.0",
"qs": "^6.10.2",
"swiper": "^7.3.1",
"swiper": "^7.3.2",
"vditor": "^3.8.8",
"vue": "^3.2.25",
"vue": "^3.2.26",
"vue-router": "^4.0.12",
"wangeditor": "^4.7.10",
"xgplayer": "^2.31.4"
@ -54,15 +54,15 @@
"@amap/amap-jsapi-types": "^0.0.8",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@iconify/json": "^1.1.441",
"@iconify/json": "^1.1.442",
"@iconify/vue": "^3.1.1",
"@types/bmapgl": "^0.0.4",
"@types/chroma-js": "^2.1.3",
"@types/qs": "^6.9.7",
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
"@vitejs/plugin-vue": "^1.10.2",
"@vue/compiler-sfc": "^3.2.25",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"@vitejs/plugin-vue": "^2.0.1",
"@vue/compiler-sfc": "^3.2.26",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^9.1.0",
"commitizen": "^4.2.4",
@ -82,15 +82,15 @@
"prettier": "^2.5.1",
"rollup-plugin-visualizer": "^5.5.2",
"sass": "^1.45.0",
"typescript": "^4.5.3",
"typescript": "^4.5.4",
"unplugin-icons": "^0.12.23",
"unplugin-vue-components": "^0.17.8",
"unplugin-vue-components": "^0.17.9",
"vite": "~2.5.10",
"vite-plugin-html": "^2.1.1",
"vite-plugin-windicss": "^1.5.4",
"vue-tsc": "^0.29.8",
"vueuc": "^0.4.18",
"windicss": "^3.2.1"
"windicss": "^3.3.0"
},
"homepage": "https://github.com/honghuangdc/soybean-admin",
"repository": {

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@
</div>
</n-form-item>
<n-space :vertical="true" size="large">
<login-agreement v-model:value="agreement" />
<login-agreement v-model:value="agreement" class="pb-12px" />
<n-button type="primary" size="large" :block="true" :round="true" :loading="loading" @click="handleSubmit">
确定
</n-button>

View File

@ -7,13 +7,7 @@
<n-form-item path="pwd">
<n-input v-model:value="model.pwd" type="password" show-password-on="click" placeholder="请输入密码" />
</n-form-item>
<n-form-item path="imgCode">
<n-input v-model:value="model.imgCode" placeholder="验证码,点击图片刷新" />
<div class="pl-8px">
<image-verify v-model:code="imgCode" />
</div>
</n-form-item>
<n-space :vertical="true" size="large">
<n-space :vertical="true" :size="24">
<div class="flex-y-center justify-between">
<n-checkbox v-model:checked="rememberMe">记住我</n-checkbox>
<span class="text-primary cursor-pointer" @click="toCurrentLogin('reset-pwd')">忘记密码</span>
@ -42,10 +36,9 @@ import { reactive, ref } from 'vue';
import { NForm, NFormItem, NInput, NSpace, NCheckbox, NButton } from 'naive-ui';
import type { FormInst, FormRules } from 'naive-ui';
import { EnumLoginModule } from '@/enum';
import { ImageVerify } from '@/components';
import { useRouterPush, useLogin } from '@/composables';
import { useAgreement } from '@/hooks';
import { formRules, getImgCodeRule } from '@/utils';
import { formRules } from '@/utils';
import { OtherLogin } from './components';
import { LoginAgreement } from '../common';
@ -56,14 +49,11 @@ const { agreement, isAgree } = useAgreement();
const formRef = ref<(HTMLElement & FormInst) | null>(null);
const model = reactive({
phone: '15170283876',
pwd: 'a123456789',
imgCode: ''
pwd: 'a123456789'
});
const imgCode = ref('');
const rules: FormRules = {
phone: formRules.phone,
pwd: formRules.pwd,
imgCode: getImgCodeRule(imgCode)
pwd: formRules.pwd
};
const rememberMe = ref(false);

View File

@ -23,7 +23,8 @@ export default defineConfig(({ mode }) => {
plugins,
server: {
host: '0.0.0.0',
port: 3100
port: 3100,
open: true
},
build: {
brotliSize: false,