Эх сурвалжийг харах

feat:注册登录弹框插件微信二维码增加source参数

yangfeng 3 сар өмнө
parent
commit
7beb76a715

+ 7 - 2
plugins/login-auth/src/module-model/wxQrcode.ts

@@ -1,5 +1,5 @@
 import { computed, ref } from 'vue'
-
+import { useCustomSpecialSource } from '@/utils/use'
 /**
  * 微信二维码相关
  */
@@ -10,7 +10,12 @@ const pageShareId = ref('')
 const pageKopShareId = ref('')
 
 const pageWechatQrcodeImgSrc = computed(() => {
-  return ImgBase + pageShareId.value
+  const source = useCustomSpecialSource()
+  if (source && source !== 'undefined' && source !== 'null') {
+    return ImgBase + pageShareId.value + '?source=' + source
+  } else {
+    return ImgBase + pageShareId.value
+  }
 })
 
 const pageKopQrcodeImgSrc = computed(() => {