mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2025-05-19 01:50:15 +09:00
fix: 修复loading图片地址异常问题
This commit is contained in:
parent
da141ae10a
commit
62992b2688
@ -2,10 +2,10 @@
|
||||
* markdown配置
|
||||
*/
|
||||
|
||||
import {
|
||||
getAppConfigs
|
||||
} from '@/config/index.js'
|
||||
import {getAppConfigs} from '@/config/index.js'
|
||||
import HaloTokenConfig from '@/config/token.config.js'
|
||||
import utils from '@/utils/index.js'
|
||||
|
||||
export default {
|
||||
domain: HaloTokenConfig.BASE_API,
|
||||
tagStyle: {
|
||||
@ -95,6 +95,6 @@ export default {
|
||||
},
|
||||
containStyle: 'font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;padding:12px;font-size: 14px;color: #606266;word-spacing: 0.8px;letter-spacing: 0.8px;border-radius: 6px;background-color:#FFFFFF;',
|
||||
|
||||
loadingGif: getAppConfigs().imagesConfig.loadingGifUrl,
|
||||
emptyGif: getAppConfigs().imagesConfig.loadingEmptyUrl,
|
||||
loadingGif: utils.checkImageUrl(getAppConfigs().imagesConfig.loadingGifUrl),
|
||||
emptyGif: utils.checkImageUrl(getAppConfigs().imagesConfig.loadingEmptyUrl),
|
||||
}
|
@ -17,6 +17,7 @@
|
||||
|
||||
<script>
|
||||
import imageCache from '@/utils/imageCache.js';
|
||||
|
||||
export default {
|
||||
name: 'cache-image',
|
||||
props: {
|
||||
@ -96,10 +97,10 @@
|
||||
return this.$tm.vx.getters().getConfigs.imagesConfig
|
||||
},
|
||||
loadingImgSrc() {
|
||||
return this.imagesConfig.loadingGifUrl;
|
||||
return this.$utils.checkImageUrl(this.imagesConfig.loadingGifUrl);
|
||||
},
|
||||
loadingErrorImageSrc() {
|
||||
return this.imagesConfig.loadingErrUrl
|
||||
return this.$utils.checkImageUrl(this.imagesConfig.loadingErrUrl)
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
Loading…
Reference in New Issue
Block a user