|
@@ -1,5 +1,14 @@
|
|
<template>
|
|
<template>
|
|
<div class="login h-full flex justify-center items-center">
|
|
<div class="login h-full flex justify-center items-center">
|
|
|
|
+ <div class="drag"></div>
|
|
|
|
+ <qm-button
|
|
|
|
+ v-if="curStepIndex == 2 || curStepIndex == 3"
|
|
|
|
+ :icon="h(GlobalOutlined)"
|
|
|
|
+ class="reset-btn"
|
|
|
|
+ @click="toIndex(0)"
|
|
|
|
+ >
|
|
|
|
+ 连接设置</qm-button
|
|
|
|
+ >
|
|
<div class="login-base flex">
|
|
<div class="login-base flex">
|
|
<span class="close" @click="willClose">×</span>
|
|
<span class="close" @click="willClose">×</span>
|
|
<div class="left-bg-box"></div>
|
|
<div class="left-bg-box"></div>
|
|
@@ -15,7 +24,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script name="Login" lang="ts" setup>
|
|
<script name="Login" lang="ts" setup>
|
|
-import { ref, onMounted } from "vue";
|
|
|
|
|
|
+import { ref, onMounted, h } from "vue";
|
|
import { closeApp } from "@/utils";
|
|
import { closeApp } from "@/utils";
|
|
import EnvCheck from "./EnvCheck.vue";
|
|
import EnvCheck from "./EnvCheck.vue";
|
|
import IpSet from "./IpSet.vue";
|
|
import IpSet from "./IpSet.vue";
|
|
@@ -24,6 +33,7 @@ import AdminLogin from "./AdminLogin.vue";
|
|
import { local } from "@/utils/tool";
|
|
import { local } from "@/utils/tool";
|
|
import { useAppStore } from "@/store";
|
|
import { useAppStore } from "@/store";
|
|
import { getServerStatus } from "@/ap/system";
|
|
import { getServerStatus } from "@/ap/system";
|
|
|
|
+import { GlobalOutlined } from "@ant-design/icons-vue";
|
|
|
|
|
|
const appStore = useAppStore();
|
|
const appStore = useAppStore();
|
|
|
|
|
|
@@ -75,6 +85,22 @@ const willClose = () => {
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
.login {
|
|
.login {
|
|
height: 100%;
|
|
height: 100%;
|
|
|
|
+ position: relative;
|
|
|
|
+ :deep(.reset-btn) {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 25px;
|
|
|
|
+ right: 65px;
|
|
|
|
+ z-index: 2;
|
|
|
|
+ }
|
|
|
|
+ & > .drag {
|
|
|
|
+ position: absolute;
|
|
|
|
+ z-index: 1;
|
|
|
|
+ left: 0;
|
|
|
|
+ top: 0;
|
|
|
|
+ right: 175px;
|
|
|
|
+ height: 80px;
|
|
|
|
+ z-index: 1;
|
|
|
|
+ }
|
|
.close {
|
|
.close {
|
|
position: absolute;
|
|
position: absolute;
|
|
z-index: 10;
|
|
z-index: 10;
|