kevin_zhangl hace 2 años
padre
commit
4b5303def4
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      src/views/user/member-upgrade.vue

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

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