浏览代码

fix(create-order): 修复凭证查看链接打开不正确的问题

- 之前使用 $router.resolve 方法生成的链接不正确,导致凭证查看页面无法正常打开
- 现在使用 location.origin + val 的方式生成完整的 URL,确保链接能正确打开

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 月之前
父节点
当前提交
ebac5cc8d2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/create-order/components/order-detail-submodule/PaymentInfo.vue

+ 2 - 2
src/views/create-order/components/order-detail-submodule/PaymentInfo.vue

@@ -335,8 +335,8 @@ export default {
     },
     vouched(val) {
       if (val) {
-        const urls = this.$router.resolve(val)
-        window.open(urls.href, '_blank')
+        const urls = location.origin + val;
+        window.open(urls, '_blank')
       }
     },
     doRefresh(type) {