diff --git a/README.md b/README.md index b5ac0387c..620905fd6 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,8 @@

-- [Docs](https://valaxy.yyj.moe/docs): Toggle 中文|English in Sidebar -- [Demo](https://valaxy.yyj.moe): with [valaxy-theme-yun](./packages/valaxy-theme-yun/) +- [English Docs](https://valaxy.site/?lang=en) | [中文文档](https://valaxy.site/?lang=zh-CN) +- [Demo](https://yun.valaxy.site): with [valaxy-theme-yun](./packages/valaxy-theme-yun/) ## Usage diff --git a/packages/valaxy/node/plugins/index.ts b/packages/valaxy/node/plugins/index.ts index 3c3db05cc..0133eeaa4 100644 --- a/packages/valaxy/node/plugins/index.ts +++ b/packages/valaxy/node/plugins/index.ts @@ -81,6 +81,11 @@ function generateAddons(options: ResolvedValaxyOptions) { return `${imports}\n` + `export default [${components}]` } +/** + * vue component render null + */ +const nullVue = 'import { defineComponent } from "vue"; export default defineComponent({ render: () => null });' + /** * read from user App.vue * @internal @@ -89,7 +94,7 @@ function generateAddons(options: ResolvedValaxyOptions) { function generateUserAppVue(options: ResolvedValaxyOptions) { const userAppVue = join(options.userRoot, 'App.vue') if (!fs.existsSync(userAppVue)) - return 'export default null' + return nullVue const scripts = [ `import UserAppVue from "${toAtFS(userAppVue)}"`,