更改首次进入的板块

This commit is contained in:
谢宇宁
2026-09-22 18:21:01 +07:00
parent 3ea6590527
commit 0fd7785585
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -850,7 +850,7 @@ const routes: RouteRecordRaw[] = [
path: '/main',
name: 'main',
component: () => import('@/views/MainView.vue'),
redirect: '/shortVideo',
redirect: '/home',
meta: {
pageKey: 'main',
pageName: '主页',
+1 -1
View File
@@ -5,7 +5,7 @@ export type LaunchAdPopupKey = 'nineGrid' | 'homeAdv' | 'announcement';
/**
* 当前正在展示的启动广告弹窗,'' 表示整条链已走完。
* 弹窗挂在 MainView,跟着启动落地页弹(不固定在首页,默认落在短视频 tab 也会弹);
* 弹窗挂在 MainView,跟着启动落地页弹(不依赖首页,落在任何 tab 都会弹);
* 首页 HomeAdv 的弹窗队列须等这条链走完再开始,避免叠在一起。
*/
export const launchAdPopupKey = ref<LaunchAdPopupKey | ''>('');
+2 -2
View File
@@ -141,8 +141,8 @@ function adControl() {
const goApp = () => {
// 仅启动后首次进首页允许弹老用户吸底;首页消费该标记
markHomeOldUserGuidePendingFromSplash();
// 同安卓:启动固定落在短剧(默认 AI短剧)
router.replace('/shortVideo');
// 同安卓:启动固定落在主页(默认选中「热门短剧」)
router.replace('/home');
let createAt = new Date(userStore.userInfo.createdAt).getTime();
let now = Date.now();
if (now - createAt > configStore.appConfig?.newbieSaleTime * 60 * 60 * 1000 && now - createAt > 3600000 * 24) {