Browse Source

doc prev site update

何海涛 1 year ago
parent
commit
71c5c27df5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/questioncenter/components/paper-actions-mixin.js

+ 2 - 1
src/views/questioncenter/components/paper-actions-mixin.js

@@ -15,7 +15,8 @@ export default {
       } else if (this._isOffice(url)) {
         // https://view.officeapps.live.com/op/view.aspx
         // https://view.xdocin.com/view
-        window.open('https://view.xdocin.com/view?src=' + encodeURIComponent(url))
+        const prefixUrl = 'https://view.officeapps.live.com/op/view.aspx?src='
+        window.open(prefixUrl + encodeURIComponent(url))
       } else {
         this.$message.error('格式错误,无法预览该格式文件!');
       }