浏览代码

fix: setup navigation

Nicolas Giard 6 年之前
父节点
当前提交
fb29dd511b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server/setup.js

+ 2 - 2
server/setup.js

@@ -207,7 +207,7 @@ module.exports = () => {
       await WIKI.models.navigation.query().delete().where({ key: 'site' })
       await WIKI.models.navigation.query().insert({
         key: 'site',
-        config: JSON.stringify([
+        config: [
           {
             icon: 'home',
             kind: 'link',
@@ -215,7 +215,7 @@ module.exports = () => {
             target: '/',
             targetType: 'home'
           }
-        ])
+        ]
       })
 
       WIKI.logger.info('Setup is complete!')