fix(HomePage): 移除外部用户ID检查并改进错误提示
将外部联系人检查时的console.warn改为alert提示,提升用户体验 移除sendFormLink中不必要的外部用户ID检查
This commit is contained in:
@@ -198,10 +198,6 @@ const sendFormLink = async () => {
|
||||
alert('企业微信功能尚未准备好,请稍等片刻...')
|
||||
return
|
||||
}
|
||||
if (!externalUserId.value) {
|
||||
alert('无法获取用户信息,请重新进入页面')
|
||||
return
|
||||
}
|
||||
try {
|
||||
await ww.sendChatMessage({
|
||||
msgtype: 'news',
|
||||
@@ -302,7 +298,7 @@ const cancelPhoneInput = () => {
|
||||
|
||||
const fetchAndCheckExternalContact = async () => {
|
||||
if (!isWWReady.value) {
|
||||
console.warn('JSSDK未就绪,无法获取外部联系人')
|
||||
alert('JSSDK未就绪,无法获取外部联系人')
|
||||
return
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user