|
|
@@ -55,6 +55,8 @@
|
|
|
<a-button @click="loginAction"
|
|
|
:loading="loading"
|
|
|
:disabled="goHomeloading">登录</a-button>
|
|
|
+ <div class="register"
|
|
|
+ v-if="isOpenUrl">还没有账号,<span @click="register">立即注册</span></div>
|
|
|
</a-form-item>
|
|
|
</a-form>
|
|
|
</div>
|
|
|
@@ -64,7 +66,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, reactive, ref, toRaw, onMounted } from 'vue';
|
|
|
+import { defineComponent, reactive, ref, toRaw, onMounted, watchEffect, watch } from 'vue';
|
|
|
import { globalDataRefresh } from '@/services/bus/index';
|
|
|
import { login } from '@/services/bus/login';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
@@ -74,7 +76,7 @@ import { initData, setLoadComplete } from '@/common/methods';
|
|
|
import eventBus from '@/utils/eventBus/index';
|
|
|
import { QWebChannel } from '@/utils/qt/qwebchannel.js';
|
|
|
import { qtAction } from './qt';
|
|
|
-import { serviceURL } from '@/services/request/serviceURL';
|
|
|
+import { serviceURL, isOpenUrl } from '@/services/request/serviceURL';
|
|
|
|
|
|
interface Form {
|
|
|
account: string;
|
|
|
@@ -216,12 +218,18 @@ export default defineComponent({
|
|
|
goHomeloading.value = false;
|
|
|
});
|
|
|
};
|
|
|
- return { form, loginAction, rules, formDom, loading, goHomeloading, goHome };
|
|
|
+ function register() {
|
|
|
+ window.open(serviceURL.openApiUrl, '_blank');
|
|
|
+ }
|
|
|
+ return { form, loginAction, rules, formDom, loading, goHomeloading, goHome, register, isOpenUrl };
|
|
|
},
|
|
|
});
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
+.register {
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
.login {
|
|
|
width: 100%;
|
|
|
height: 100%;
|