diff --git a/package.json b/package.json index be7fa81..1248dda 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "test:e2e": "vue-cli-service test:e2e" }, "dependencies": { - "avue-plugin-ueditor": "^0.1.4", + "avue-plugin-ueditor": "^0.1.7", "axios": "^0.18.0", "babel-polyfill": "^6.26.0", "classlist-polyfill": "^1.2.0", diff --git a/src/config/website.js b/src/config/website.js index c08dd35..c1e1125 100644 --- a/src/config/website.js +++ b/src/config/website.js @@ -48,4 +48,5 @@ export default { ssoUrl: 'http://localhost:8100/oauth/authorize?client_id=saber&response_type=code&redirect_uri=', // 单点登录回调地址(Saber服务的地址) redirectUri: 'http://localhost:1888', + filePrex: 'http://192.168.1.106:9000',//'http://www.qdscgs.com:9091' 图片前缀 } diff --git a/src/option/user/info.js b/src/option/user/info.js index d2fcbe0..e198ead 100644 --- a/src/option/user/info.js +++ b/src/option/user/info.js @@ -1,3 +1,4 @@ +import website from "../../config/website" export default { tabs: true, tabsActive: 1, @@ -10,6 +11,7 @@ export default { type: 'upload', listType: 'picture-img', propsHttp: { + home: website.filePrex, res: 'data', url: 'link', }, diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue index 6e22233..a31bdcf 100644 --- a/src/page/index/top/index.vue +++ b/src/page/index/top/index.vue @@ -75,7 +75,7 @@ + :src="userInfo.avatar ? website.filePrex + userInfo.avatar : require('@/assets/image/hospital_logo.png')"> {{userInfo.user_name}} diff --git a/src/views/articlelist/index.vue b/src/views/articlelist/index.vue index 5b2bc3b..850c8c8 100644 --- a/src/views/articlelist/index.vue +++ b/src/views/articlelist/index.vue @@ -3,7 +3,8 @@ + @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" + :upload-after="uploadAfter">