添加源数量限制

This commit is contained in:
lyswhut
2022-02-18 15:50:51 +08:00
parent abbf067625
commit 5844232a00
4 changed files with 10 additions and 0 deletions
@@ -53,6 +53,13 @@ export default {
},
methods: {
handleImport() {
if (this.userApi.list.length > 20) {
this.$dialog({
message: this.$t('user_api__max_tip'),
confirmButtonText: this.$t('ok'),
})
return
}
selectDir({
title: this.$t('user_api__import_file'),
properties: ['openFile'],