From 0128b372f9491b35e355dd688cc075b13166d847 Mon Sep 17 00:00:00 2001 From: purocean Date: Sat, 3 Aug 2019 19:32:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=B7=A5=E5=85=B7=E6=B3=A8=E5=85=A5da?= =?UTF-8?q?yjs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/plugins/AppletPlugin.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/plugins/AppletPlugin.js b/frontend/src/plugins/AppletPlugin.js index 1695d22f..5dc89215 100644 --- a/frontend/src/plugins/AppletPlugin.js +++ b/frontend/src/plugins/AppletPlugin.js @@ -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()