刷新图片路径修改

This commit is contained in:
na.guo
2020-08-07 11:57:35 +08:00
parent df5ded59c8
commit fe2815d117
2 changed files with 4 additions and 1 deletions

View File

@@ -1,10 +1,12 @@
import config from '@/config'
export default { export default {
refreshImg() { refreshImg() {
console.log(config.mainUrl, 'this.$mainUrl')
if (window.WebViewJavascriptBridge) { if (window.WebViewJavascriptBridge) {
EWebBridge.webCallAppInJs('webview_right_button', { EWebBridge.webCallAppInJs('webview_right_button', {
btns: [ btns: [
{ {
img: 'images/refresh.png', img: config.mainUrl + '/images/refresh.png',
route: { route: {
flag: '', flag: '',
extra: {} extra: {}

View File

@@ -211,6 +211,7 @@ export default {
} }
}, },
created() { created() {
refresh.refreshImg()
if (process.env.NODE_ENV != 'development') { if (process.env.NODE_ENV != 'development') {
refresh.refreshImg() refresh.refreshImg()