fix(welcome): 欢迎页沿用站点外观与 SEO 标题
合并 #683:欢迎页沿用站点外观与 SEO 标题
This commit is contained in:
@@ -7,8 +7,10 @@ import { isIsolatedPrevisRepro } from "@/lib/dev-repro";
|
||||
installChunkRecovery();
|
||||
|
||||
// The public film entry checks its availability independently of workspace bootstrap.
|
||||
if (/^\/welcome\/?$/.test(window.location.pathname)) void import("./welcome-application");
|
||||
else {
|
||||
if (/^\/welcome\/?$/.test(window.location.pathname)) {
|
||||
void bootstrapAppearance().catch(() => undefined);
|
||||
void import("./welcome-application");
|
||||
} else {
|
||||
// The backend-free DEV lab must not make requests before AppProviders isolates it.
|
||||
const appearanceReady = isIsolatedPrevisRepro(import.meta.env.DEV, window.location.pathname) ? Promise.resolve() : bootstrapAppearance();
|
||||
void import("./application");
|
||||
|
||||
@@ -59,7 +59,6 @@ function WelcomeExperience({ look, brandName, onLookChange }: { look: WelcomeLoo
|
||||
const videoRef = useRef<HTMLVideoElement>(null);
|
||||
|
||||
useEffect(() => {
|
||||
document.title = "影策 · 让一个故事从文字走向银幕";
|
||||
const media = window.matchMedia("(prefers-reduced-motion: reduce)");
|
||||
const onMotion = () => setReduced(media.matches);
|
||||
media.addEventListener("change", onMotion);
|
||||
|
||||
Reference in New Issue
Block a user