diff --git a/app.js b/app.js index 6985418..153d07c 100644 --- a/app.js +++ b/app.js @@ -30,6 +30,7 @@ App({ }, // entire_url: 拼接 baseUrl entireUrl(path) { + if (/^https?:\/\//.test(path)) return path const base = this.globalData.baseUrl || '' return base.replace(/\/$/, '') + '/' + path.replace(/^\//, '') } diff --git a/components/brick/brick.wxml b/components/brick/brick.wxml index 727c942..42f72da 100644 --- a/components/brick/brick.wxml +++ b/components/brick/brick.wxml @@ -5,31 +5,31 @@