ZaiZai 1 ano atrás
pai
commit
8fab5bbcf9

+ 2 - 2
src/config/index.json

@@ -1,6 +1,6 @@
 {
-  "target": "http://39.108.216.210:8090",
-  "target1": "http://192.168.0.109:8090",
+  "target1": "http://39.108.216.210:8090",
+  "target": "http://192.168.0.109:8090",
   "dev": {
     "port": 1888
   }

+ 2 - 2
src/config/website.js

@@ -46,6 +46,6 @@ export default {
   reportUrl: 'http://localhost:8108/ureport',
   // WebSocket 任务消息
   //socket: 'ws://127.0.0.1:5399/websocket/manager/',
-  socket: 'wss://business.hcxxy.com/wss/websocket/manager/', //线上
-
+  //socket: 'wss://business.hcxxy.com/wss/websocket/manager/', //线上
+  socket: '',
 }

+ 2 - 1
src/page/index/index.vue

@@ -38,7 +38,6 @@
 
 <script>
 import { mapGetters } from "vuex";
-
 import tags from "./tags";
 import search from "./search";
 import top from "./top/";
@@ -184,6 +183,7 @@ export default {
       //推送系统
 
     setInitSocket () {
+      if (!website.socket) return
         const user_id = this.userInfo.user_id;
         socket = new WebSocket(website.socket + user_id);
         socket.onopen = function (evt) {
@@ -209,6 +209,7 @@ export default {
 
     //发送消息
     socketSend (msg) {
+      if (!website.socket) return
        const user_id = this.userInfo.user_id;
         console.log('发送消息:',)
         if (socket) {

+ 11 - 0
src/views/system/announcement.vue

@@ -0,0 +1,11 @@
+<template>
+  <div>1111</div>
+</template>
+
+<script setup>
+
+</script>
+
+<style lang="scss">
+
+</style>