Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix: 修复 tabBar icon 使用网络图片编译报错的问题
Browse files Browse the repository at this point in the history
fix #697
  • Loading branch information
Darmody committed Mar 13, 2020
1 parent cdabbdf commit baaf172
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/remax-alipay/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const plugin: RemaxNodePluginConstructor = () => {
(images: string[], tab: any) => [...images, tab.icon, tab.activeIcon],
[]
)
.filter((image: string) => !!image)
.filter((image: any) => !!image && !/^http(s?):\/\//.test(image))
.reduce<string[]>(
(paths, image) => [...paths, path.join(ROOT_DIR, image)],
[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{
"pagePath": "packageA/pages/index",
"name": "其他",
"icon": "./assets/images/cat.png",
"icon": "https://img.com/assets/images/cat.png",
"activeIcon": "./assets/images/dog.png"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
{
pagePath: 'packageA/pages/index',
name: '其他',
icon: './assets/images/cat.png',
icon: 'https://img.com/assets/images/cat.png',
activeIcon: './assets/images/dog.png',
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{
"pagePath": "packageA/pages/index",
"text": "其他",
"iconPath": "./assets/images/cat.png",
"iconPath": "https://img.com/assets/images/cat.png",
"selectedIconPath": "./assets/images/dog.png"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
{
pagePath: 'packageA/pages/index',
text: '其他',
iconPath: './assets/images/cat.png',
iconPath: 'https://img.com/assets/images/cat.png',
selectedIconPath: './assets/images/dog.png',
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{
"pagePath": "packageA/pages/index",
"text": "其他",
"iconPath": "./assets/images/cat.png",
"iconPath": "https://img.com/assets/images/cat.png",
"selectedIconPath": "./assets/images/dog.png"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
{
pagePath: 'packageA/pages/index',
text: '其他',
iconPath: './assets/images/cat.png',
iconPath: 'https://img.com/assets/images/cat.png',
selectedIconPath: './assets/images/dog.png',
},
],
Expand Down
2 changes: 1 addition & 1 deletion packages/remax-toutiao/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const plugin: RemaxNodePluginConstructor = () => {
],
[]
)
.filter((image: any) => !!image)
.filter((image: any) => !!image && !/^http(s?):\/\//.test(image))
.reduce<string[]>(
(paths, image) => [...paths, path.join(ROOT_DIR, image)],
[]
Expand Down
2 changes: 1 addition & 1 deletion packages/remax-wechat/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const plugin: RemaxNodePluginConstructor = () => {
],
[]
)
.filter((image: any) => !!image)
.filter((image: any) => !!image && !/^http(s?):\/\//.test(image))
.reduce<string[]>(
(paths, image) => [...paths, path.join(ROOT_DIR, image)],
[]
Expand Down

0 comments on commit baaf172

Please sign in to comment.