Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix: 修复组件内静态资源引用路径错误
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonleex committed Jan 12, 2018
1 parent 532123a commit 592605a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/resource.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const {
url
} = window.TS_WEB;
const baseUrl = url + '/assets/h5/';
const baseUrl = url

export function resolveImage(image) {
if (image.slice(0, 5).toLowerCase() == 'data:') {
if (image.slice(0, 5).toLowerCase() === 'data:') {
return image;
}
return baseUrl + 'images/' + image;
return baseUrl + image;
}

0 comments on commit 592605a

Please sign in to comment.