Parcourir la source

默认密码修改

dengrui il y a 2 mois
Parent
commit
5d647a9285
4 fichiers modifiés avec 20 ajouts et 6 suppressions
  1. 1 1
      .env.development
  2. 1 1
      package.json
  3. 13 0
      src/components/RealTimeMsg/index.vue
  4. 5 4
      src/views/login/index.vue

+ 1 - 1
.env.development

@@ -11,7 +11,7 @@ VITE_APP_BASE_API = '/dev-api'
 VITE_APP_UPLOAD_URL = 'http://192.168.101.4:9000'
 
 # 开发接口地址
-VITE_APP_API_URL = 'http://192.168.101.4:7203'
+VITE_APP_API_URL = 'http://192.168.0.174:7203'
 # Websocket地址
 VITE_WEBSOCKET_URL = 'ws://192.168.101.178:7203'
 ``

+ 1 - 1
package.json

@@ -66,7 +66,7 @@
     "path-browserify": "^1.0.1",
     "path-to-regexp": "^6.2.1",
     "pinia": "^2.1.7",
-    "pinia-plugin-persistedstate": "^3.2.1",
+    "pinia-plugin-persistedstate": "^3.2.3",
     "sockjs-client": "1.6.1",
     "sortablejs": "^1.15.2",
     "stompjs": "^2.3.3",

+ 13 - 0
src/components/RealTimeMsg/index.vue

@@ -44,6 +44,16 @@
           {{ braceletState == 0 ? "离线" : "在线" }}
         </div>
       </div>
+      <div style="margin-left: 5px; height: 100%">
+        <el-button
+          style="height: 60px; border-radius: 16px; font-size: 20px"
+          class="login-btn"
+          size="large"
+          type="primary"
+          @click="toCs"
+          >测试系统
+        </el-button>
+      </div>
       <!-- <el-button
         v-if="braceletState == 0"
         type="primary"
@@ -93,6 +103,9 @@ const submit = async (item, index) => {
     ElMessage.success("操作成功!");
   }
 };
+const toCs = () => {
+  window.open("http://127.0.0.1:8085/main/home");
+};
 //连接地址
 const ws = ref(null);
 const addWebSocket = () => {

+ 5 - 4
src/views/login/index.vue

@@ -182,7 +182,7 @@ const { height } = useWindowSize();
 
 const loginData = ref<LoginData>({
   userName: "admin",
-  password: "admin@123",
+  password: "123456",
 });
 
 const loginRules = computed?.(() => {
@@ -304,9 +304,10 @@ function handleLogin() {
           /*if (stationType == "5") {
             router.replace({ name: "PrepareMain" });
           } else {*/
-            router.replace({ name: "ProcessMain" });
-         /* }*/
-        }).catch(() => {
+          router.replace({ name: "ProcessMain" });
+          /* }*/
+        })
+        .catch(() => {
           // getCaptcha();
 
           console.log("catch");