wangxy 1 month ago
parent
commit
eee301d3c1
1 changed files with 9 additions and 0 deletions
  1. 9 0
      components/dialog/nichengDialog.vue

+ 9 - 0
components/dialog/nichengDialog.vue

@@ -17,6 +17,9 @@
 
 <script setup>
 	import { ref } from 'vue';
+	import {
+		toast,
+	} from "@/utils/common";
 	const props = defineProps({
 	  title: {
 	    type: String,
@@ -42,6 +45,12 @@
 	}
 	// 确认
 	function confirmBtn(){
+		
+		if (!nichengValue.value) {
+			toast('请输入昵称')
+			return;
+		}
+		
 		$emit('confirm-btn',nichengValue.value);
 		tipSmallPopup.value.close();
 		nichengValue.value = ''