| | |
| | | import { getServerName } from "./api.ts"; |
| | | |
| | | import { getApps } from "@/api/app"; |
| | | import { getDevInfo } from "@/api/login"; |
| | | |
| | | import config from "../../../../package.json"; |
| | | |
| | |
| | | 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(${ |
| | |
| | | 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> |