فهرست منبع

扫码的二维码参数改成正常扫码参数,取消测试扫码链接,准备发线上

刘洋 1 سال پیش
والد
کامیت
b6ca428ff1
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      src/views/sop/components/dynamic-form-item/SIGN.vue

+ 4 - 4
src/views/sop/components/dynamic-form-item/SIGN.vue

@@ -32,9 +32,9 @@ const emit = defineEmits(['update:modelValue', 'change']);
 
 const valueData = ref('');
 const getSignResultImg = () => {
-  // getAttachmentListByKey(key.value).then((res) => {
-  //先用体验版的测试扫码链接,只能写死传'1',后期小程序发正式版本再增加支持活的参数
-  getAttachmentListByKey('1').then((res) => {
+  getAttachmentListByKey(key.value).then((res) => {
+    //先用体验版的测试扫码链接,只能写死传'1',后期小程序发正式版本再增加支持活的参数
+    // getAttachmentListByKey('1').then((res) => {
     if (Array.isArray(res)) {
       if (res && res[0]?.url) {
         valueData.value = res[0].url;
@@ -81,7 +81,7 @@ const visibleChange = (visible) => {
 };
 const createQrcodeValue = computed(() => {
   //先用体验版的测试扫码链接,只能写死,后期小程序发正式版本再增加支持活的参数
-  return 'https://sopwxapp.qmth.com.cn/sign/?key=1';
+  return 'https://sopwxapp.qmth.com.cn/sign/?key=' + this.key;
 });
 </script>