heyujie
2022-01-28 ea05b9be825899d4c86d131fb9a38ad58f078fa5
src/pages/settings/views/generalSettings.vue
@@ -380,8 +380,11 @@
      }
    });
    const url = this.curUser.backgroundpic;
    this.activeIcons = this.curUser.useIconType-1
    this.universalColor = this.colorList.findIndex((x) => {
      return x.color == localStorage.getItem("--colorCard")
    })
    if (url) {
      // const arr = url.split("/");
      this.activeBg = this.tableBGList.findIndex((x) => {
        return x.url == url;
      });
@@ -424,6 +427,7 @@
      }).then((res) => {
        if (res.success) {
          sessionStorage.setItem("userInfo", JSON.stringify(res.data))
          debugger
          this.$message.success(res.msg);
        }
      });
@@ -502,6 +506,17 @@
    },
    selectIcons(i) {
      this.activeIcons = i;
      updateUser({
        id: this.curUser.id,
        iconType: i+1,
      }).then((res) => {
        if (res.success) {
          window.parent.postMessage({ msg: "AppUpdate" }, "*");
          sessionStorage.setItem("userInfo", JSON.stringify(res.data))
          debugger
          this.$message.success(res.msg);
        }
      });
    },
    removeSound(item) {
      const h = this.$createElement;