修复init初始化失败页面跳转到空白的错误

修复model模板string给予长度导致的初始化错误
This commit is contained in:
pixel
2021-06-15 11:33:51 +08:00
parent 7c3b0b9b8d
commit 86bfa374bb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -74,7 +74,6 @@ export default {
console.log(this.hello)
},
async onSubmit() {
this.out = true
const loading = this.$loading({
lock: true,
text: '正在初始化数据库,请稍候',
@@ -84,6 +83,7 @@ export default {
try {
const res = await initDB(this.form)
if (res.code === 0) {
this.out = true
this.$message({
type: 'success',
message: res.msg