mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 添加lint规则运行脚本,修复lint错误
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user