mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
小工具注入dayjs
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user