| | |
| | | </div> |
| | | <systemClean v-if="activePage == 1" style="width: 100%" :free="free" :full="full" @refreshPercent="getLeftPer"></systemClean> |
| | | <updateSettings v-if="activePage == 0" style="width: 100%"></updateSettings> |
| | | <back-up v-if="activePage == 3" style="width: 100%"></back-up> |
| | | <!-- <back-up v-if="activePage == 3" style="width: 100%"></back-up> --> |
| | | <restartSettings v-if="activePage == 2" style="width: 100%"></restartSettings> |
| | | <sysInfo v-if="activePage == 3" style="width: 100%"></sysInfo> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getClockInfo, |
| | | saveClockInfo, |
| | | testNTPserver,freedisk |
| | | freedisk |
| | | } from "@/api/system"; |
| | | import { getUrlKey } from "@/api/utils"; |
| | | import systemClean from "../views/systemClean"; |
| | | import updateSettings from "../views/updateSettings"; |
| | | import BackUp from "../views/backUp"; |
| | | import restartSettings from "../views/restartSettings"; |
| | | import sysInfo from "../views/sysInfo"; |
| | | export default { |
| | | name: "settings", |
| | | components: { |
| | | systemClean, |
| | | updateSettings, |
| | | BackUp, |
| | | restartSettings, |
| | | restartSettings,sysInfo |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | // { name: "备份还原",icon:"" }, |
| | | { name: "系统清理" ,icon:"\uea3b" }, |
| | | { name: "重启设置" ,icon:"\ue709" }, |
| | | { name: "系统信息" ,icon:"\ue709" }, |
| | | ], |
| | | activePage: 0, |
| | | free: 0, |
| | |
| | | }; |
| | | }, |
| | | mounted() { |
| | | |
| | | const menu = getUrlKey("menu"); |
| | | if (menu) { |
| | | this.activePage = this.menuArr.findIndex((x) => x.name == menu); |
| | | // this.$nextTick(() => { |
| | | // this.$refs.netSettings.openRight(2); |
| | | // }); |
| | | } |
| | | this.getLeftPer() |
| | | }, |
| | | methods: { |