#
whycq
2023-12-22 8c9fbf75b3a98143a81f746d5cd6594c9416bd25
pages/login/login.vue
@@ -168,6 +168,7 @@
            this.baseUrl = "http://" + this.url.ip + ':' + this.url.port + '/' + this.url.project
            uni.setStorageSync('baseUrl', this.baseUrl);
            uni.setStorageSync('url', this.url);
            uni.setStorageSync('project','tzsk')
            this.$refs.inputDialog.close()
         },
         onLogin() {
@@ -188,9 +189,9 @@
                  "content-type": "application/json"
               },
               success(result) {
                  uni.reLaunch({
                     url: '../home/home'
                  });
                  // uni.reLaunch({
                  //    url: '../home/menuHome'
                  // });
                  if (result.statusCode === 404) {
                     uni.showToast({
                        title: '登录失败',
@@ -214,7 +215,7 @@
                        })
                        setTimeout(() => {
                           uni.reLaunch({
                              url: '../home/home'
                              url: '../home/menuHome'
                           });
                        }, 300)
                     }, 700)