mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-10-15 03:32:11 +08:00
fix: 消除initialState为空时的warn
This commit is contained in:
parent
b49d886582
commit
a29b021190
@ -27,7 +27,7 @@ const renderClient = (opts = {}) => {
|
|||||||
|
|
||||||
const app = createApp(rootContainer);
|
const app = createApp(rootContainer);
|
||||||
// initialState是响应式的,后期可以更改
|
// initialState是响应式的,后期可以更改
|
||||||
app.provide("initialState", reactive(initialState));
|
app.provide("initialState", reactive(initialState ?? {}));
|
||||||
|
|
||||||
plugin.applyPlugins({
|
plugin.applyPlugins({
|
||||||
key: 'onAppCreated',
|
key: 'onAppCreated',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user