ZZJ
2022-07-15 a3f357e8a60443b74b64c7479113c68eb35ce1f5
src/pages/desktop/index/App.vue
@@ -18,6 +18,7 @@
import { getServerName } from "./api.ts";
import { getApps } from "@/api/app";
import { getDevInfo } from "@/api/login";
import config from "../../../../package.json";
@@ -51,11 +52,12 @@
      if (JSON.parse(sessionStorage.getItem("userInfo"))) {
        return JSON.parse(sessionStorage.getItem("userInfo")).backgroundpic;
      }
      return ""
      return "";
    },
  },
  created() {
    this.getServerName();
    this.getDevInfo();
  },
  mounted() {
    document.getElementById("app").style.backgroundImage = `url(${
@@ -217,6 +219,12 @@
        sessionStorage.setItem("title", res.data.serverName);
      }
    },
    async getDevInfo() {
      const res = await getDevInfo();
      if (res && res.success && res.data.deviceType.substr(0, 2) === "DS") {
        sessionStorage.setItem("isShowPolling", "show");
      }
    },
  },
};
</script>