小工具注入dayjs

This commit is contained in:
purocean
2019-08-03 19:32:37 +08:00
parent 16f6299ecc
commit 0128b372f9
+2
View File
@@ -1,5 +1,6 @@
import Vue from 'vue'
import CryptoJS from 'crypto-js'
import dayjs from 'dayjs'
const RunPlugin = (md) => {
const temp = md.renderer.rules.fence.bind(md.renderer.rules)
@@ -128,6 +129,7 @@ RunPlugin.runScript = (el) => {
this.contentWindow.appletId = appletId
this.contentWindow.Vue = Vue
this.contentWindow.CryptoJS = CryptoJS
this.contentWindow.dayjs = dayjs
// 调用初始化方法
this.contentWindow.init && this.contentWindow.init()