fix search
This commit is contained in:
@@ -2,11 +2,11 @@
|
|||||||
<html ${htmlAttrs}>
|
<html ${htmlAttrs}>
|
||||||
<head>
|
<head>
|
||||||
${head}
|
${head}
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css" />
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@alpha" />
|
||||||
</head>
|
</head>
|
||||||
<body ${bodyAttrs}>
|
<body ${bodyAttrs}>
|
||||||
${app}
|
${app}
|
||||||
${scripts}
|
${scripts}
|
||||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@docsearch/js"></script>
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@docsearch/js@alpha"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -10,6 +10,15 @@ Prism.manual = true
|
|||||||
export default function (Vue, { head }) {
|
export default function (Vue, { head }) {
|
||||||
head.htmlAttrs = { 'data-theme': 'dark' }
|
head.htmlAttrs = { 'data-theme': 'dark' }
|
||||||
|
|
||||||
|
// fix docsearch
|
||||||
|
if (!window.process) {
|
||||||
|
window.process = {
|
||||||
|
env: {
|
||||||
|
NODE_ENV: 'production',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Vue.use(PortalVue)
|
Vue.use(PortalVue)
|
||||||
Vue.component('Layout', App)
|
Vue.component('Layout', App)
|
||||||
Vue.component('Demo', () => import(/* webpackChunkName: "demo" */ '~/components/Demo'))
|
Vue.component('Demo', () => import(/* webpackChunkName: "demo" */ '~/components/Demo'))
|
||||||
|
|||||||
Reference in New Issue
Block a user