wangxy 3 月之前
父节点
当前提交
eee301d3c1
共有 1 个文件被更改,包括 9 次插入0 次删除
  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 = ''