Skip to content

Commit c19824e

Browse files
author
Colin Yang
committed
Front - Optmised behaviour when import null file
1 parent 14f926f commit c19824e

File tree

1 file changed

+1
-3
lines changed
  • frontend/tinywebdb-php-vue/src/components/manage

1 file changed

+1
-3
lines changed

frontend/tinywebdb-php-vue/src/components/manage/Backup.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ export default {
6868
methods: {
6969
async onImportJson (onDone) {
7070
if (this.importJson.file === null) {
71-
this.importJson.state = false
71+
this.$root.showInfo('', '请选择一个文件')
7272
onDone()
73-
await this.$root.sleep(1000)
74-
this.importJson.state = null
7573
return
7674
}
7775
let formData = new FormData()

0 commit comments

Comments
 (0)