From 04e92a26bf2ffcfd955b32b227ec6fd0f1222430 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Mon, 27 Sep 2021 15:15:10 +0800 Subject: [PATCH] chore: update comment --- packages/uni-app/src/ssr.ts | 2 +- packages/uni-h5/src/helpers/useDocumentTitle.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uni-app/src/ssr.ts b/packages/uni-app/src/ssr.ts index 9428e20d4..887994e2c 100644 --- a/packages/uni-app/src/ssr.ts +++ b/packages/uni-app/src/ssr.ts @@ -86,7 +86,7 @@ const ssrServerRef: SSRRef = (value, key, shallow = false) => { state = globalData } state[key!] = sanitise(value) - // SSR 模式下 watchEffect 不生效 https://github.com/vuejs/vue-next/blob/master/packages/runtime-core/src/apiWatch.ts#L253 + // SSR 模式下 watchEffect 不生效 https://github.com/vuejs/vue-next/blob/master/packages/runtime-core/src/apiWatch.ts#L283 // 故自定义ref return customRef((track, trigger) => { const customTrigger = () => (trigger(), (state[key!] = sanitise(value))) diff --git a/packages/uni-h5/src/helpers/useDocumentTitle.ts b/packages/uni-h5/src/helpers/useDocumentTitle.ts index c93a113e5..81806ee41 100644 --- a/packages/uni-h5/src/helpers/useDocumentTitle.ts +++ b/packages/uni-h5/src/helpers/useDocumentTitle.ts @@ -4,7 +4,7 @@ import { getApp } from '../framework/setup/app' export function updateDocumentTitle(title: string) { if (__NODE_JS__) { - // updateDocumentTitle 可能是异步调用,此时使用 useSSRContext 获取,可能没有 instance + // setNavigationBarTitle 可能是异步调用,此时使用 useSSRContext 获取,可能没有 instance const ssrContext = getApp().$.appContext.provides[ssrContextKey] if (ssrContext) { ssrContext[UNI_SSR_TITLE] = title -- GitLab