ソースを参照

修改MKD路径

master
王饶冀 3年前
コミット
2b17a051a4
1個のファイルの変更1行の追加2行の削除
  1. 1
    2
      digital-park-web/digital-park/src/utils/common.js

+ 1
- 2
digital-park-web/digital-park/src/utils/common.js ファイルの表示

@@ -38,8 +38,7 @@ export const sendMsg = (status, msg) => {
*/

export const parseMarkdown = (markdownText) => {
let imgUrl = `http://192.168.18.236:18888/common/getImg?path=`;
// let imgUrl = `${process.env.VUE_APP_PARK_DOMAIN}/common/getImg?path=`;
let imgUrl = `${process.env.VUE_APP_PARK_DOMAIN}/common/getImg?path=`;
const htmlText = markdownText
.replace(/^### (.*$)/gim, '<h3>$1</h3>')
.replace(/^## (.*$)/gim, '<h2>$1</h2>')

読み込み中…
キャンセル
保存