zhangyuhan 4 жил өмнө
parent
commit
56ca0842d6

+ 1 - 0
jydocs-pc/.browserslistrc

@@ -1,2 +1,3 @@
 > 1%
 last 2 versions
+ie >= 11

+ 1 - 1
jydocs-pc/.env.development

@@ -1,5 +1,5 @@
 NODE_ENV=development
 VUE_APP_BASE_API='/api-docs/'
-VUE_APP_BASE_URL='/swordfish/frontPage/docs/sess/index'
+VUE_APP_BASE_URL='/swordfish/docs/index'
 VUE_APP_MOCK=true
 VUE_APP_BASE_PUBLIC='http://localhost:8080/'

+ 2 - 2
jydocs-pc/.env.production

@@ -1,4 +1,4 @@
 NODE_ENV=production
 VUE_APP_BASE_API='/api-docs/'
-VUE_APP_BASE_URL='/'
-VUE_APP_BASE_PUBLIC='/'
+VUE_APP_BASE_URL='/swordfish/docs/index'
+VUE_APP_BASE_PUBLIC='/page_docs/'

+ 16 - 2
jydocs-pc/README.md

@@ -50,7 +50,21 @@
 
     > 文件地址 /src/web/templates/frontRouter/pc/docs/sess/index.html
 
-3. 访问`/swordfish/frontPage/docs/sess/index`
+3. 访问`/swordfish/docs/index`
 
 ##### 部署
-> 待确认
+
+###### nginx
+```
+# 剑鱼文库 前端配置
+location ^~/page_docs {
+    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/index.html;
+}
+```