fix: 添加lint规则运行脚本,修复lint错误

This commit is contained in:
tnt group
2022-09-16 12:26:12 +08:00
parent 1bd0f516e2
commit 810f4d8e6d
20 changed files with 84 additions and 88 deletions
@@ -24,7 +24,7 @@
v-model:value.trim="title"
@keyup.enter="handleBlur"
@blur="handleBlur"
></n-input>
></n-input>
</n-space>
</template>
@@ -50,16 +50,16 @@ const fetchProhectInfoById = () => {
const title = ref<string>(fetchProhectInfoById() || '')
const comTitle = computed(() => {
title.value = title.value.replace(/\s/g, "");
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
title.value = title.value.replace(/\s/g, '')
return title.value.length ? title.value : '新项目'
})
const handleFocus = () => {
focus.value = true
nextTick(() => {
; (<any>inputInstRef).value.focus()
inputInstRef.value && (inputInstRef.value as any).focus()
})
}
@@ -71,4 +71,4 @@ const handleBlur = () => {
.title {
font-size: 15px;
}
</style>
</style>