liuyanpeng 2 лет назад
Родитель
Сommit
c4e522c8a4
4 измененных файлов с 6 добавлено и 5 удалено
  1. 2 2
      package.json
  2. 1 1
      public/index-debug.html
  3. 1 1
      public/index-release.html
  4. 2 1
      src/main.js

+ 2 - 2
package.json

@@ -1,7 +1,7 @@
 {
   "name": "prodog-pc-client",
   "description": "Leanwo Prodog Client",
-  "version": "1.1.47",
+  "version": "1.1.48",
   "author": "yangzhijie1488 <yangzhijie1488@163.com>",
   "scripts": {
     "dev": "cross-env webpack serve --config ./webpack.dev.js",
@@ -18,7 +18,7 @@
     "ant-design-vue": "^3.2.15",
     "axios": "^0.19.2",
     "click-outside-vue3": "^4.0.1",
-    "client-base-v4": "3.0.97",
+    "client-base-v4": "3.0.99",
     "client-dic-v3": "^3.0.24",
     "client-eam-v3": "^3.0.50",
     "client-role-v3": "^3.0.14",

+ 1 - 1
public/index-debug.html

@@ -83,7 +83,7 @@
 <body>
 	<div id="app">
 	</div>
-
+	<div id="refreshCount"></div>
 	<script defer="defer" src="/static/echarts/dist/echarts.min.js"></script>
 	
 

+ 1 - 1
public/index-release.html

@@ -78,7 +78,7 @@
 <body>
 	<div id="app">
 	</div>
-
+	<div id="refreshCount"></div>
 	<script defer="defer" nonce="*NONCE_TOKEN*"  src="/static/echarts/dist/echarts.min.js"></script>
 
 	<!-- <script src="../static/js/fullscreen-api.js"></script> -->

+ 2 - 1
src/main.js

@@ -63,6 +63,7 @@ app.mount('#app');
 window.app = app;
 
 
+// 当页面刷新后重新打开声音提示
 if (window.performance.navigation.type == 1) {
   localStorage.setItem('allowSound',false)
  }
@@ -74,8 +75,8 @@ if (window.performance.navigation.type == 1) {
  * @return {[type]}      [description]
  */
 router.beforeEach((to, from, next) => {
-
   let allowSound = localStorage.getItem('allowSound')
+  // 不是登录页才进行消息推送
   if(to.fullPath !== '/login'){
     PushMessage.openWebSocket()
     if(allowSound && allowSound == 'false'){