liyongli hace 1 año
padre
commit
b6e92b8708
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/view/finance/index.vue

+ 1 - 1
src/view/finance/index.vue

@@ -350,7 +350,7 @@ const cancel = async () => {
       ? title_text.split('').splice(0, 13).join('') + '...'
       : title_text;
   const qt = await QRCode.toDataURL(
-    [location.protocol, '//', location.host, '/finance.html?id=', selectItem.value.id].join('')
+    [location.href.split('.html')[0], '.html?id=', selectItem.value.id].join('')
   );
   const layers = {
     list: [