diff --git a/config/api.config.js b/config/api.config.js index 2ba3259..df0bb6a 100644 --- a/config/api.config.js +++ b/config/api.config.js @@ -7,9 +7,9 @@ const apisMap = { CDN: '', PROXY: '/proxy', SOCKET: 'http://localhost:3000/ws', - GRAVATAR: '/proxy/static.rymcu.com/avatar', - VDITOR: 'https://static.rymcu.com/vditor@3.9.8/', - VDITOR_CSS: 'https://static.rymcu.com/vditor@3.9.8/dist/css/content-theme' + GRAVATAR: 'https://static.rymcu.com/avatar', + VDITOR: 'https://static.rymcu.com/vditor@3.10.3/', + VDITOR_CSS: 'https://static.rymcu.com/vditor@3.10.3/dist/css/content-theme' }, test: { FE: 'https://rymcu.com', @@ -18,8 +18,8 @@ const apisMap = { PROXY: 'https://static.rymcu.com/proxy', SOCKET: 'https://rymcu.com/wss', GRAVATAR: 'https://static.rymcu.com/avatar', - VDITOR: 'https://static.rymcu.com/vditor@3.9.8/', - VDITOR_CSS: 'https://static.rymcu.com/vditor@3.9.8/dist/css/content-theme' + VDITOR: 'https://static.rymcu.com/vditor@3.10.3/', + VDITOR_CSS: 'https://static.rymcu.com/vditor@3.10.3/dist/css/content-theme' }, production: { FE: 'https://rymcu.com', @@ -28,8 +28,8 @@ const apisMap = { PROXY: 'https://static.rymcu.com/proxy', SOCKET: 'https://rymcu.com/wss', GRAVATAR: 'https://static.rymcu.com/avatar', - VDITOR: 'https://static.rymcu.com/vditor@3.9.8/', - VDITOR_CSS: 'https://static.rymcu.com/vditor@3.9.8/dist/css/content-theme' + VDITOR: 'https://static.rymcu.com/vditor@3.10.3/', + VDITOR_CSS: 'https://static.rymcu.com/vditor@3.10.3/dist/css/content-theme' } } diff --git a/package.json b/package.json index 6fac827..cb8e41e 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "raw-loader": "^4.0.2", "save-svg-as-png": "^1.4.17", "simple-icons": "^6.23.0", - "vditor": "^3.8.18", + "vditor": "^3.10.3", "vue-cropper": "^0.6.2", "vue-sse": "^2.5.2", "vuejs-avataaars": "^4.0.1" diff --git a/pages/draft/_draft_id.vue b/pages/draft/_draft_id.vue index d180413..8c4592f 100644 --- a/pages/draft/_draft_id.vue +++ b/pages/draft/_draft_id.vue @@ -68,6 +68,8 @@ import Vue from 'vue'; import {mapState} from 'vuex'; import 'vditor/dist/css/content-theme/light.css'; + import apiConfig from '~/config/api.config' + export default { name: "DraftDetail",