mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 08:55:52 +08:00
pc商品列表样式修改,商家注释添加,订单统计,退订单按钮样式
This commit is contained in:
@@ -32,7 +32,11 @@ router.afterEach(route => {
|
||||
|
||||
Vue.prototype.linkTo = function (url) {
|
||||
if (url.substr(0, 1) === '/') { // 非外部链接,没有origin,只有路由地址
|
||||
window.open(location.origin + url, '_blank');
|
||||
if (router.mode === 'hash') {
|
||||
window.open(location.origin + '/#' + url, '_blank');
|
||||
} else {
|
||||
window.open(location.origin + url, '_blank');
|
||||
}
|
||||
} else { // 外部链接,完整的url地址
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user