Răsfoiți Sursa

Merge branch 'master' of http://192.168.3.207:10080/jianyu/jy-docs

xgwangman 4 ani în urmă
părinte
comite
825afeef65

+ 0 - 0
.drone.yml


+ 11 - 0
README.md

@@ -77,6 +77,17 @@ PC端 /opt/nginx/nginx/html/page_docs/
 ##### 部署
 ```
 # 剑鱼文库 前端配置
+location ^~/page_docs_app {
+    if ($uri ~ \.html$) {
+		add_header         Pragma   no-cache;
+        add_header         Expires  0;
+        add_header         Cache-Control no-cache,no-store,must-revalidate;
+    }
+    root /opt/nginx/nginx/html/;
+    index index.html;
+    try_files $uri $uri/ /page_docs_app/index.html;
+}
+
 location ^~/page_docs {
     if ($uri ~ \.html$) {
 		add_header         Pragma   no-cache;

+ 1 - 1
jydocs-mobile/src/components/Search.vue

@@ -23,7 +23,7 @@ export default class Empty extends Vue {
     input = ''
 
     created () {
-      this.input = this.defalultValue
+      this.input = this.defalultValue || ''
     }
 
     onSearch () {

+ 1 - 1
jydocs-mobile/src/views/purchase/purchase.vue

@@ -128,7 +128,7 @@ export default class extends Vue {
       }
     })
 
-    this.getListDetail({ B: true }).then((res) => {
+    this.getListDetail({ B: true }).then((res: any) => {
       console.log(res)
       if (res.error_code === 0) {
         this.response.balance = res.points.balance

+ 1 - 1
jydocs-mobile/src/views/purchase/purchasesuccess.vue

@@ -62,7 +62,7 @@ export default class extends Vue {
   }
 
   setSession () {
-    let paydata = sessionStorage.getItem('paydata')
+    let paydata: any = sessionStorage.getItem('paydata')
     console.log(paydata)
     if (paydata) {
       paydata = JSON.parse(paydata)