im路径跳转

master
2023-02-09 16:34:01 +08:00
parent cc31b6232f
commit 42a24d854b
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ Vue.prototype.linkToGoods = function (goodsId, skuId) { // 跳转买家端商
if (localStorage.getItem('storeFlag') == 'false') { if (localStorage.getItem('storeFlag') == 'false') {
window.open(`${config.PC_STORE}goods-operation-edit?id=${goodsId}`, '_blank') window.open(`${config.PC_STORE}goods-operation-edit?id=${goodsId}`, '_blank')
} else { } else {
window.open(`${config.PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank') window.open(`${config.PC_URL}goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank')
} }
}; };
Vue.prototype.linkToStore = function (storeId) { // 跳转商家端商品 Vue.prototype.linkToStore = function (storeId) { // 跳转商家端商品
@ -42,7 +42,7 @@ Vue.prototype.linkToOrders = function (sn) {
window.open(`${config.PC_STORE}order-detail?sn=${sn}`, '_blank') window.open(`${config.PC_STORE}order-detail?sn=${sn}`, '_blank')
} else { } else {
// 用户 // 用户
window.open(`${config.PC_URL}/OrderDetail?sn=${sn}`, '_blank') window.open(`${config.PC_URL}home/OrderDetail?sn=${sn}`, '_blank')
} }
}; };