|
@@ -7,7 +7,7 @@
|
|
|
<!-- <img src="../../../assets/images/grey-logo.png" /> -->
|
|
|
<img src="/resource/img/logo.png" />
|
|
|
<div class="ml-2 truncate md:opacity-100" :class="getTitleClass" v-show="showTitle">
|
|
|
- {{ zdyTitile || title1 }}
|
|
|
+ {{ mytitle || title1 }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -19,8 +19,8 @@
|
|
|
import { useDesign } from '/@/hooks/web/useDesign';
|
|
|
import { PageEnum } from '/@/enums/pageEnum';
|
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
|
- import { addressKey } from '/@/api/jyUserPlatform/index';
|
|
|
- import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
+ import { useRootSetting } from '/@/hooks/setting/useRootSetting';
|
|
|
+
|
|
|
const props = defineProps({
|
|
|
/**
|
|
|
* The theme of the current parent component
|
|
@@ -36,43 +36,14 @@
|
|
|
alwaysShowTitle: { type: Boolean },
|
|
|
});
|
|
|
|
|
|
- const { createConfirm } = useMessage();
|
|
|
+ const { getTitle } = useRootSetting();
|
|
|
+ const mytitle = computed(() => getTitle.value);
|
|
|
const { prefixCls } = useDesign('app-logo');
|
|
|
const { getCollapsedShowTitle } = useMenuSetting();
|
|
|
const userStore = useUserStore();
|
|
|
const { title1 } = useGlobSetting();
|
|
|
- const zdyTitile = ref(title1)
|
|
|
const go = useGo();
|
|
|
- const onClose = () => {
|
|
|
- window.opener = null;
|
|
|
- window.open('about:blank', '_top')?.close();
|
|
|
- };
|
|
|
- function getUrlParams2() {
|
|
|
- let url = window.location.href
|
|
|
- let urlStr = url.split('?')[1]
|
|
|
- const urlSearchParams = new URLSearchParams(urlStr)
|
|
|
- const result = Object.fromEntries(urlSearchParams.entries())
|
|
|
- let address = result['key']
|
|
|
- if(address){
|
|
|
- addressKey(address).then(res => {
|
|
|
- if(res.status == 1){
|
|
|
- createConfirm({
|
|
|
- iconType: 'warning',
|
|
|
- title: '警告',
|
|
|
- content: `当前账户已停用,请联系平台管理员`,
|
|
|
- onOk: async () => {
|
|
|
- onClose()
|
|
|
- },
|
|
|
- onCancel: async () => {
|
|
|
- onClose()
|
|
|
- },
|
|
|
- });
|
|
|
- }
|
|
|
- zdyTitile.value = res.platformName
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- getUrlParams2()
|
|
|
+
|
|
|
const getAppLogoClass = computed(() => [
|
|
|
prefixCls,
|
|
|
props.theme,
|