فهرست منبع

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) {