heyujie
2021-12-07 4ff29e301de38488db0ff04f0209c99e37cf30b4
src/pages/settings/views/generalSettings.vue
@@ -380,6 +380,7 @@
      }
    });
    const url = this.curUser.backgroundpic;
    this.activeIcons = this.curUser.useIconType-1
    if (url) {
      // const arr = url.split("/");
      this.activeBg = this.tableBGList.findIndex((x) => {
@@ -502,6 +503,16 @@
    },
    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))
          this.$message.success(res.msg);
        }
      });
    },
    removeSound(item) {
      const h = this.$createElement;