ZZJ
2022-01-06 fa44bcc2861fe56e8af50fbd8f56065250a2ece3
报错处理
2个文件已修改
12 ■■■■■ 已修改文件
src/pages/index/App.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/index/App.vue
@@ -139,9 +139,13 @@
      this.$refs["carousel"].next();
    },
    async getInitInfo() {
      const res = await getInitInfo();
      const res = await getInitInfo().catch((err) => {
        this.isWhite = false;
      });
      if (res.data.initPwd && !res.data.initRegInfo) {
      console.log(res);
      if (res.data && res.data.initPwd && !res.data.initRegInfo) {
        const res1 = await getRegInfo();
        this.active = 1;
        console.log(res1);
@@ -150,7 +154,7 @@
        }, 0);
      }
      if (res.data.initPwd && res.data.initRegInfo) {
      if (res.data && res.data.initPwd && res.data.initRegInfo) {
        location.assign("/view/login/");
        return;
      }
vue.config.js
@@ -41,7 +41,7 @@
});
const serverUrl = "http://192.168.20.189:7009"; // 羊五//
// const serverUrl = "http://192.168.8.10:7009";
//  const serverUrl = "http://192.168.8.10:7009";
const serverUrl2 = "http://192.168.8.10:9000";
// const serverUrl = "http://192.168.20.10:7009";
// const serverUrl2 = "http://192.168.20.10:9000";