config文件夾下index.js加入:
const os = require('os')
let localhost = ''
try {
const network = os.networkInterfaces()
localhost = network[Object.keys(network)[0]][1].address
} catch (e) {
localhost = 'localhost';
}
host: localhost,
config文件夾下index.js加入:
const os = require('os')
let localhost = ''
try {
const network = os.networkInterfaces()
localhost = network[Object.keys(network)[0]][1].address
} catch (e) {
localhost = 'localhost';
}
host: localhost,
前提: 要知道 vue-quill-editor是沒有文字說明的,現在加個文字說明和上傳圖片,代碼有用! 1、效果圖 2、代碼 <!-- 圖片上傳組件輔助--> <el-upload class="a