|
@@ -6,11 +6,10 @@
|
|
|
<a-col>
|
|
<a-col>
|
|
|
<div class="login-background">
|
|
<div class="login-background">
|
|
|
<div>
|
|
<div>
|
|
|
-
|
|
|
|
|
- <img v-if="getOem(OemType.manager)"
|
|
|
|
|
|
|
+ <img v-if="oem === OemType.manager"
|
|
|
src="@/assets/images/logo.png"
|
|
src="@/assets/images/logo.png"
|
|
|
alt="" />
|
|
alt="" />
|
|
|
- <img v-else-if="getOem(OemType.wrspot)"
|
|
|
|
|
|
|
+ <img v-else-if="oem === OemType.wrspot"
|
|
|
src="@/assets/images/wrLogo.jpg"
|
|
src="@/assets/images/wrLogo.jpg"
|
|
|
alt="" />
|
|
alt="" />
|
|
|
<img v-else
|
|
<img v-else
|
|
@@ -79,11 +78,12 @@ import { login } from '@/services/bus/login';
|
|
|
import { useRouter } from 'vue-router';
|
|
import { useRouter } from 'vue-router';
|
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
import { localStorageUtil } from '@/utils/storage/index';
|
|
import { localStorageUtil } from '@/utils/storage/index';
|
|
|
-import { setLoadComplete } from '@/common/methods';
|
|
|
|
|
|
|
+import { initData, setLoadComplete } from '@/common/methods';
|
|
|
import eventBus from '@/utils/eventBus/index';
|
|
import eventBus from '@/utils/eventBus/index';
|
|
|
import { QWebChannel } from '@/utils/qt/qwebchannel.js';
|
|
import { QWebChannel } from '@/utils/qt/qwebchannel.js';
|
|
|
import { qtAction } from './qt';
|
|
import { qtAction } from './qt';
|
|
|
import { handleOem } from '@/services/request/serviceURL';
|
|
import { handleOem } from '@/services/request/serviceURL';
|
|
|
|
|
+import { serviceURL } from '@/services/request/serviceURL';
|
|
|
|
|
|
|
|
interface Form {
|
|
interface Form {
|
|
|
account: string;
|
|
account: string;
|
|
@@ -159,6 +159,10 @@ export default defineComponent({
|
|
|
name: 'login',
|
|
name: 'login',
|
|
|
components: {},
|
|
components: {},
|
|
|
setup() {
|
|
setup() {
|
|
|
|
|
+ const oem = ref<string>('');
|
|
|
|
|
+ initData(() => {
|
|
|
|
|
+ oem.value = serviceURL.oem;
|
|
|
|
|
+ });
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
const form = reactive(initForm);
|
|
const form = reactive(initForm);
|
|
|
const rules = {
|
|
const rules = {
|
|
@@ -211,7 +215,7 @@ export default defineComponent({
|
|
|
goHomeloading.value = false;
|
|
goHomeloading.value = false;
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
- return { form, loginAction, rules, formDom, loading, goHomeloading, goHome, ...handleOem() };
|
|
|
|
|
|
|
+ return { form, loginAction, rules, formDom, loading, goHomeloading, goHome, ...handleOem(), oem };
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|