fix SdM
share link
This commit is contained in:
@@ -4479,6 +4479,10 @@ export const tools = {
|
||||
|
||||
},
|
||||
|
||||
copyToClip(myq: any, mystr: string, show: boolean) {
|
||||
this.copyStringToClipboard(myq, mystr, show)
|
||||
},
|
||||
|
||||
copyStringToClipboardSilent(mystr: string) {
|
||||
|
||||
copyToClipboard(mystr)
|
||||
@@ -6983,6 +6987,7 @@ export const tools = {
|
||||
},
|
||||
|
||||
async sendMsgTelegramCmd($q: any, $t: any, cmd: number, showmsgsent: boolean, text?: string, title?: string) {
|
||||
const userStore = useUserStore()
|
||||
|
||||
let mydata: IMsgGlobParam = {
|
||||
typemsg: 0,
|
||||
@@ -6998,8 +7003,12 @@ export const tools = {
|
||||
showmsgsent = false
|
||||
}
|
||||
|
||||
return this.sendMsgTelegram($q, $t, mydata, showmsgsent)
|
||||
if (cmd === shared_consts.CmdToSend.SHARE_MSGREG) {
|
||||
const link = userStore.getRefLink(userStore.my.username)
|
||||
tools.copyStringToClipboard($q, link, true)
|
||||
}
|
||||
|
||||
return this.sendMsgTelegram($q, $t, mydata, showmsgsent)
|
||||
},
|
||||
|
||||
getFieldSearchByTable(mytable: string, tablejoin: string, field: string) {
|
||||
|
||||
Reference in New Issue
Block a user