重构资产订阅功能,将弹窗模式改为外部页面跳转模式,移除AssetSubscribeDialog组件及其在App.vue中的引用,修改assetSubscribe工具类将showAssetSubscribeDialog方法替换为redirectToSubscribePage方法,当检测到402状态码时直接跳转到外部开通页面并携带资产ID和返回地址参数

This commit is contained in:
WUSIJIAN
2026-01-21 14:02:42 +08:00
parent aec7f3a017
commit af17d81422
5 changed files with 596 additions and 319 deletions

View File

@@ -4,12 +4,6 @@
<LockScreen v-if="themeConfig.isLockScreen" />
<Setings ref="setingsRef" v-show="themeConfig.lockScreenTime > 1" />
<CloseFull v-if="!themeConfig.isLockScreen" />
<!-- 模块未开通弹窗 -->
<AssetSubscribeDialog
v-model="assetSubscribeState.visible"
:assetId="assetSubscribeState.assetId"
:serviceName="assetSubscribeState.serviceName"
/>
</el-config-provider>
</template>
@@ -25,12 +19,10 @@ import setIntroduction from '/@/utils/setIconfont';
import LockScreen from '/@/layout/lockScreen/index.vue';
import Setings from '/@/layout/navBars/breadcrumb/setings.vue';
import CloseFull from '/@/layout/navBars/breadcrumb/closeFull.vue';
import AssetSubscribeDialog from '/@/components/assetSubscribe/index.vue';
import { assetSubscribeState } from '/@/utils/assetSubscribe';
export default defineComponent({
name: 'app',
components: { LockScreen, Setings, CloseFull, AssetSubscribeDialog },
components: { LockScreen, Setings, CloseFull },
setup() {
const { proxy } = <any>getCurrentInstance();
const setingsRef = ref();
@@ -97,7 +89,6 @@ export default defineComponent({
themeConfig,
setingsRef,
getGlobalComponentSize,
assetSubscribeState,
...toRefs(state),
};
},