Quellcode durchsuchen

发送申请添加提示

jackson vor 4 Monaten
Ursprung
Commit
f7e96f5a6a

+ 11 - 1
.idea/sonarlint/issuestore/index.pb

@@ -103,4 +103,14 @@ Q
 Q
 !src/pages/profile/index/index.vue,1/4/14bb3aa7f2fa1e01b3845eb666e8dd9afe51b8cd
 U
-%src/pages/login/setBaseInfo/index.vue,1/5/1596928214f3f3dcc4592d6f5cf15eb1b126a8a6
+%src/pages/login/setBaseInfo/index.vue,1/5/1596928214f3f3dcc4592d6f5cf15eb1b126a8a6
+[
++src/pages/contact/sendApplication/index.vue,2/8/28eb27d89774a7f0166f2b4741fcc5629d71b6bd
+B
+src/store/index.ts,7/8/788f62f848ec0936ef56cb3abc11e629c69f787c
+C
+src/utils/common.ts,6/e/6ed779521725aad5a3f41d23fa1fdd8cb948bd1d
+E
+src/layout/Tabbar.vue,7/0/70b4f1937bca91b5f3470fe6dbf6e1c9dd5a3ca2
+U
+%src/pages/contact/newFriend/index.vue,4/f/4f8b58cae29ed5eea098c71d8ed72bea49bbf1a2

+ 11 - 1
.idea/sonarlint/securityhotspotstore/index.pb

@@ -103,4 +103,14 @@ Q
 Q
 !src/pages/profile/index/index.vue,1/4/14bb3aa7f2fa1e01b3845eb666e8dd9afe51b8cd
 U
-%src/pages/login/setBaseInfo/index.vue,1/5/1596928214f3f3dcc4592d6f5cf15eb1b126a8a6
+%src/pages/login/setBaseInfo/index.vue,1/5/1596928214f3f3dcc4592d6f5cf15eb1b126a8a6
+[
++src/pages/contact/sendApplication/index.vue,2/8/28eb27d89774a7f0166f2b4741fcc5629d71b6bd
+B
+src/store/index.ts,7/8/788f62f848ec0936ef56cb3abc11e629c69f787c
+C
+src/utils/common.ts,6/e/6ed779521725aad5a3f41d23fa1fdd8cb948bd1d
+E
+src/layout/Tabbar.vue,7/0/70b4f1937bca91b5f3470fe6dbf6e1c9dd5a3ca2
+U
+%src/pages/contact/newFriend/index.vue,4/f/4f8b58cae29ed5eea098c71d8ed72bea49bbf1a2

+ 6 - 2
src/pages/contact/sendApplication/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="page_container">
     <NavBar :title="isGroup ? $t('groupVerificationDesc') : $t('friendVerification')">
-      <van-button :disabled="!reqMessage" :loading="loading" class="!px-2" type="primary" :text="$t('buttons.send')"
+      <van-button :loading="loading" class="!px-2" type="primary" :text="$t('buttons.send')"
         size="mini" @click="sendApplication" />
     </NavBar>
 
@@ -18,6 +18,7 @@ import useConversationToggle from '@/hooks/useConversationToggle';
 import { feedbackToast } from '@/utils/common';
 import { IMSDK } from '@/utils/imCommon';
 import { GroupJoinSource, SessionType } from '@openim/wasm-client-sdk';
+import {showToast} from "vant";
 
 type SendApplicationProps = {
   isGroup: Boolean;
@@ -37,6 +38,9 @@ const reqMessage = ref('')
 const loading = ref(false)
 
 const sendApplication = () => {
+  if(!reqMessage.value){
+    return showToast('请输入发送申请的内容')
+  }
   loading.value = true;
   let func
   if (props.isGroup) {
@@ -70,4 +74,4 @@ const sendApplication = () => {
 
 </script>
 
-<style lang='scss' scoped></style>
+<style lang='scss' scoped></style>