Explorar o código

feat: 图片前缀判断

zhangyuhan %!s(int64=3) %!d(string=hai) anos
pai
achega
8b2ae23600
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/web/staticres/common-module/yearEndReport/js/result.js

+ 3 - 0
src/web/staticres/common-module/yearEndReport/js/result.js

@@ -63,6 +63,9 @@ var result = new Vue({
     var pageInfo = sessionStorage.getItem('yearEndReportResult')
     if (pageInfo) {
       this.pageInfo = JSON.parse(pageInfo)
+      if (this.pageInfo.user_head && this.pageInfo.user_head.indexOf('/upload') === 0) {
+        this.pageInfo.user_head = domain + this.pageInfo.user_head
+      }
       this.selectType(this.pageInfo.result)
     } else {
       location.href = './yearEndReport'