kevin_zhangl 2 năm trước cách đây
mục cha
commit
4b5303def4
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      src/views/user/member-upgrade.vue

+ 8 - 0
src/views/user/member-upgrade.vue

@@ -381,6 +381,14 @@ export default {
       })
     },
 		fetchUpgradeInfo() {
+			if (!this.form.insertUserName) {
+				this.$message({
+					message: this.$t('user.enterMemberCode'),
+					type: 'error'
+				})
+				return false
+			}
+
 			this.loading = true
 			fetchUpgradeInfo({ userName: this.form.insertUserName }).then(response => {
 				this.loading = false