Authored by 沈志敏

fix bug

... ... @@ -41,7 +41,7 @@ module.exports = (Vue) => {
* @param value
*/
Vue.filter('transformBlk', (value) => {
let protocol = value.match(/^.*:?\/\//);
let protocol = value.match(/^(https?:)?\/\//);
protocol = protocol && protocol.length ? protocol[0] : '';
value = value.replace(protocol, '');
... ... @@ -60,7 +60,7 @@ module.exports = (Vue) => {
}
// 全部品牌
if (value === 'm.yohobuy.com/brand') {
if (value === 'm.yohobuy.com/brand' || value === 'm.yohobuy.com/brands') {
return `${protocol}m.yohoblk.com/brand`;
}
... ...