fix: fix prism auto initialization
This commit is contained in:
parent
ec151a405a
commit
74da37a7a6
@ -46,10 +46,11 @@ module.exports = {
|
||||
css: ['veui-theme-dls/common.less', '@/assets/styles/global.styl', 'veui-theme-dls/'],
|
||||
|
||||
plugins: [
|
||||
{ src: '~plugins/hm.js', ssr: false },
|
||||
{ src: '~plugins/i18n.js' },
|
||||
{ src: '~plugins/l10n.js' },
|
||||
{ src: '~plugins/target.js', ssr: false },
|
||||
{ src: '~plugins/hm.js', ssr: false }
|
||||
{ src: '~plugins/prism.js', ssr: false }
|
||||
],
|
||||
|
||||
/**
|
||||
|
4
plugins/prism.js
Normal file
4
plugins/prism.js
Normal file
@ -0,0 +1,4 @@
|
||||
export default () => {
|
||||
window.Prism = window.Prism || {}
|
||||
window.Prism.manual = true
|
||||
}
|
Loading…
Reference in New Issue
Block a user