mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-06-30 02:35:08 +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);
|
||||
// initialState是响应式的,后期可以更改
|
||||
app.provide("initialState", reactive(initialState));
|
||||
app.provide("initialState", reactive(initialState ?? {}));
|
||||
|
||||
plugin.applyPlugins({
|
||||
key: 'onAppCreated',
|
||||
|
Loading…
x
Reference in New Issue
Block a user