提交 fdd2398d authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 6fd2208b
......@@ -35,10 +35,10 @@
"ali-oss": "^6.17.1",
"chalk": "^5.0.1",
"eslint": "^8.13.0",
"eslint-plugin-vue": "^8.6.0",
"eslint-plugin-vue": "^8.7.1",
"typescript": "~4.6.3",
"vite": "^2.9.5",
"vite-plugin-checker": "^0.4.6",
"vue-tsc": "^0.34.9"
"vue-tsc": "^0.34.10"
}
}
......@@ -16,7 +16,7 @@ specifiers:
chalk: ^5.0.1
element-plus: ^2.1.10
eslint: ^8.13.0
eslint-plugin-vue: ^8.6.0
eslint-plugin-vue: ^8.7.1
pinia: ^2.0.13
qs: ^6.10.3
sass: ^1.50.1
......@@ -25,7 +25,7 @@ specifiers:
vite-plugin-checker: ^0.4.6
vue: ^3.2.33
vue-router: ^4.0.14
vue-tsc: ^0.34.9
vue-tsc: ^0.34.10
dependencies:
'@element-plus/icons-vue': 1.1.4_vue@3.2.33
......@@ -45,16 +45,16 @@ devDependencies:
'@types/node': 17.0.25
'@types/qs': 6.9.7
'@vitejs/plugin-vue': 2.3.1_vite@2.9.5+vue@3.2.33
'@vue/eslint-config-typescript': 10.0.0_a62cbc2f4797496d74696b1f6538012a
'@vue/eslint-config-typescript': 10.0.0_72c1a3548548335704ca8b66d8a11662
'@vue/tsconfig': 0.1.3_@types+node@17.0.25
ali-oss: 6.17.1
chalk: 5.0.1
eslint: 8.13.0
eslint-plugin-vue: 8.6.0_eslint@8.13.0
eslint-plugin-vue: 8.7.1_eslint@8.13.0
typescript: 4.6.3
vite: 2.9.5_sass@1.50.1
vite-plugin-checker: 0.4.6_vite@2.9.5
vue-tsc: 0.34.9_typescript@4.6.3
vue-tsc: 0.34.10_typescript@4.6.3
packages:
......@@ -345,32 +345,32 @@ packages:
vue: 3.2.33
dev: true
/@volar/code-gen/0.34.9:
resolution: {integrity: sha512-LHkuA4VfjeMjouMyE5LkQyr/q7BBBL+RnpV+4xLN5ad2fW639vUlJKK8JIx6DswMlmLSF88N5s4WFGFmLcl40g==}
/@volar/code-gen/0.34.10:
resolution: {integrity: sha512-Pygl26uA4CuQcDgNndeTSNOYF+NbShcV+rwWRy/nRNv1JB++1EbaQ60/ti8c5zTRoL4a8OtipKMq9Sw8LzpRIw==}
dependencies:
'@volar/source-map': 0.34.9
'@volar/source-map': 0.34.10
dev: true
/@volar/source-map/0.34.9:
resolution: {integrity: sha512-+n1hb6SPKV6Y/MNDYAO9uwB+oSDmoVlFVuYrb6QiZnLowqjB9WSoDg31GRHGNjfepjTruOiAkKa3bLMc0rFsOg==}
/@volar/source-map/0.34.10:
resolution: {integrity: sha512-DBSUGNJB2B08U6Ut14ZJSEOcBS7eV/aiinhoLbMrEe/HJtZRcnPuyE8f0c2BvmRM2LK8WQx77V54/lw/Ra8WDA==}
dev: true
/@volar/vue-code-gen/0.34.9:
resolution: {integrity: sha512-84XExk3rUU59QbJxkQq6xkHb6a3kXBNNeYSGS1+H+GMqx4z3BYa9MnQ0KvfUEM1Nnjyn+IA8RmbuQJMR7POlNw==}
/@volar/vue-code-gen/0.34.10:
resolution: {integrity: sha512-oK5gat5AHllSMJzY+UMbttJvAjoUGzicXxLHoIwb6DTHpfcf2pADYUndiw5kSYHo+2Xd/+U1c9D8FUOJ+JHAFw==}
dependencies:
'@volar/code-gen': 0.34.9
'@volar/source-map': 0.34.9
'@volar/code-gen': 0.34.10
'@volar/source-map': 0.34.10
'@vue/compiler-core': 3.2.33
'@vue/compiler-dom': 3.2.33
'@vue/shared': 3.2.33
dev: true
/@volar/vue-typescript/0.34.9:
resolution: {integrity: sha512-+SqUBcXkccrYJlCQAZ5fn9SA9v9pV2fpMblsG44/GTVEopQmgUU2PMby/9RsavEcbl0Byyrv2627Sl5ILC318A==}
/@volar/vue-typescript/0.34.10:
resolution: {integrity: sha512-FCGSqLC+T/AcBUFXoFniPKLa/fLslBuHsepUmId8dG5ROXZhQaJ5h4fkA87247SWb7z4o9mI6v86xevXEjRVKw==}
dependencies:
'@volar/code-gen': 0.34.9
'@volar/source-map': 0.34.9
'@volar/vue-code-gen': 0.34.9
'@volar/code-gen': 0.34.10
'@volar/source-map': 0.34.10
'@volar/vue-code-gen': 0.34.10
'@vue/compiler-sfc': 3.2.33
'@vue/reactivity': 3.2.33
dev: true
......@@ -413,7 +413,7 @@ packages:
resolution: {integrity: sha512-IiA0SvDrJEgXvVxjNkHPFfDx6SXw0b/TUkqMcDZWNg9fnCAHbTpoo59YfJ9QLFkwa3raau5vSlRVzMSLDnfdtQ==}
dev: false
/@vue/eslint-config-typescript/10.0.0_a62cbc2f4797496d74696b1f6538012a:
/@vue/eslint-config-typescript/10.0.0_72c1a3548548335704ca8b66d8a11662:
resolution: {integrity: sha512-F94cL8ug3FaYXlCfU5/wiGjk1qeadmoBpRGAOBq+qre3Smdupa59dd6ZJrsfRODpsMPyTG7330juMDsUvpZ3Rw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
......@@ -423,7 +423,7 @@ packages:
'@typescript-eslint/eslint-plugin': 5.19.0_f34adc8488d2e4f014fe61432d70cbf2
'@typescript-eslint/parser': 5.19.0_eslint@8.13.0+typescript@4.6.3
eslint: 8.13.0
eslint-plugin-vue: 8.6.0_eslint@8.13.0
eslint-plugin-vue: 8.7.1_eslint@8.13.0
vue-eslint-parser: 8.3.0_eslint@8.13.0
transitivePeerDependencies:
- supports-color
......@@ -677,6 +677,10 @@ packages:
resolution: {integrity: sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==}
dev: false
/boolbase/1.0.0:
resolution: {integrity: sha1-aN/1++YMUes3cl6p4+0xDcwed24=}
dev: true
/bowser/1.9.4:
resolution: {integrity: sha512-9IdMmj2KjigRq6oWhmwv1W36pDuA4STQZ8q6YO9um+x07xgYNCD3Oou+WP/3L1HNz7iqythGet3/p4wvc8AAwQ==}
dev: true
......@@ -802,6 +806,12 @@ packages:
which: 2.0.2
dev: true
/cssesc/3.0.0:
resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
engines: {node: '>=4'}
hasBin: true
dev: true
/csstype/2.6.20:
resolution: {integrity: sha512-/WwNkdXfckNgw6S5R125rrW8ez139lBHWouiBvX8dfMFtcn6V81REDqnH7+CRpRipfYlyU1CmOnOxrmGcFOjeA==}
dev: false
......@@ -1163,8 +1173,8 @@ packages:
source-map: 0.6.1
dev: true
/eslint-plugin-vue/8.6.0_eslint@8.13.0:
resolution: {integrity: sha512-abXiF2J18n/7ZPy9foSlJyouKf54IqpKlNvNmzhM93N0zs3QUxZG/oBd3tVPOJTKg7SlhBUtPxugpqzNbgGpQQ==}
/eslint-plugin-vue/8.7.1_eslint@8.13.0:
resolution: {integrity: sha512-28sbtm4l4cOzoO1LtzQPxfxhQABararUb1JtqusQqObJpWX2e/gmVyeYVfepizPFne0Q5cILkYGiBoV36L12Wg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.2.0 || ^7.0.0 || ^8.0.0
......@@ -1172,6 +1182,8 @@ packages:
eslint: 8.13.0
eslint-utils: 3.0.0_eslint@8.13.0
natural-compare: 1.4.0
nth-check: 2.0.1
postcss-selector-parser: 6.0.10
semver: 7.3.7
vue-eslint-parser: 8.3.0_eslint@8.13.0
transitivePeerDependencies:
......@@ -1861,6 +1873,12 @@ packages:
path-key: 3.1.1
dev: true
/nth-check/2.0.1:
resolution: {integrity: sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==}
dependencies:
boolbase: 1.0.0
dev: true
/object-assign/4.1.1:
resolution: {integrity: sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=}
engines: {node: '>=0.10.0'}
......@@ -2003,6 +2021,14 @@ packages:
resolution: {integrity: sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==}
dev: true
/postcss-selector-parser/6.0.10:
resolution: {integrity: sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==}
engines: {node: '>=4'}
dependencies:
cssesc: 3.0.0
util-deprecate: 1.0.2
dev: true
/postcss/8.4.12:
resolution: {integrity: sha512-lg6eITwYe9v6Hr5CncVbK70SoioNQIq81nsaG86ev5hAidQvmOeETBqs7jm43K2F5/Ley3ytDtriImV6TpNiSg==}
engines: {node: ^10 || ^12 || >=14}
......@@ -2630,13 +2656,13 @@ packages:
vue: 3.2.33
dev: false
/vue-tsc/0.34.9_typescript@4.6.3:
resolution: {integrity: sha512-uR4KIbhDqg5xAEenePfARq7rRgOKp8FJwe0HM1EUYfRLc0ZYZ97dr9WJ8yFlxzZEmfWYm/doWyBK5a5mvom9eg==}
/vue-tsc/0.34.10_typescript@4.6.3:
resolution: {integrity: sha512-rWU4SjDqk9ylQN2hbnyP+rEu8W2a712DWUmciX6rDnId1m8sN/cuypTKjWjHHjaBLWNKULoEakRTOvrQ4ainhw==}
hasBin: true
peerDependencies:
typescript: '*'
dependencies:
'@volar/vue-typescript': 0.34.9
'@volar/vue-typescript': 0.34.10
typescript: 4.6.3
dev: true
......
......@@ -23,7 +23,7 @@ const logout = () => {
</div>
</div>
<div class="app-header-right">
<el-dropdown>
<el-dropdown v-if="userInfo">
<div class="avatar">
<img :src="userInfo.avatar || 'https://webapp-pub.ezijing.com/website/base/images/avatar.svg'" />
</div>
......
......@@ -19,9 +19,9 @@ const rules = {
desc: [{ required: true, message: '请输入正文', trigger: 'blur' }]
}
// 提交
const onSubmit = (formRef: FormInstance) => {
if (!formRef) return
formRef.validate().then(() => {
const onSubmit = () => {
if (!formRef.value) return
formRef.value.validate().then(() => {
props.id ? update() : create()
})
}
......@@ -78,7 +78,7 @@ onMounted(() => {
<el-input type="number" v-model="form.weight" />
</el-form-item>
<el-form-item>
<el-button type="primary" auto-insert-space @click="onSubmit(formRef)">保存</el-button>
<el-button type="primary" auto-insert-space @click="onSubmit">保存</el-button>
<el-button auto-insert-space @click="onCancel">取消</el-button>
</el-form-item>
</el-form>
......
......@@ -25,9 +25,9 @@ const typeList = [
{ label: '消息', value: '4' }
]
// 提交
const onSubmit = (formRef: FormInstance) => {
if (!formRef) return
formRef.validate().then(() => {
const onSubmit = () => {
if (!formRef.value) return
formRef.value.validate().then(() => {
props.id ? update() : create()
})
}
......@@ -92,7 +92,7 @@ onMounted(() => {
<el-input type="number" v-model="form.weight" />
</el-form-item>
<el-form-item>
<el-button type="primary" auto-insert-space @click="onSubmit(formRef)">保存</el-button>
<el-button type="primary" auto-insert-space @click="onSubmit">保存</el-button>
</el-form-item>
</el-form>
</AppCard>
......
......@@ -25,9 +25,9 @@ const rules = {
// certificate_number: [{ required: true, message: '请输入证书编号', trigger: 'blur' }]
}
// 提交
const onSubmit = (formRef: FormInstance) => {
if (!formRef) return
formRef.validate().then(update)
const onSubmit = () => {
if (!formRef.value) return
formRef.value.validate().then(update)
}
// 修改
const update = () => {
......@@ -78,7 +78,7 @@ onMounted(() => {
<el-image :src="form.avatar" style="width: 100px; height: 100px"></el-image>
</el-form-item>
<el-form-item>
<el-button type="primary" auto-insert-space @click="onSubmit(formRef)">保存</el-button>
<el-button type="primary" auto-insert-space @click="onSubmit">保存</el-button>
</el-form-item>
</el-form>
</AppCard>
......
......@@ -23,9 +23,9 @@ const typeList = [
{ label: '考试攻略', value: '3' }
]
// 提交
const onSubmit = (formRef: FormInstance) => {
if (!formRef) return
formRef.validate().then(() => {
const onSubmit = () => {
if (!formRef.value) return
formRef.value.validate().then(() => {
props.id ? update() : create()
})
}
......@@ -74,7 +74,7 @@ onMounted(() => {
<el-input v-model="form.aliyun_video_id" />
</el-form-item>
<el-form-item>
<el-button type="primary" auto-insert-space @click="onSubmit(formRef)">保存</el-button>
<el-button type="primary" auto-insert-space @click="onSubmit">保存</el-button>
</el-form-item>
</el-form>
</AppCard>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论