|
|
@@ -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 = ''
|