|
@@ -50,6 +50,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
token: "Bearer " + getToken(),
|
|
|
+ serverUrl:null,
|
|
|
editor: null,
|
|
|
html: "",
|
|
|
toolbarConfig: {
|
|
@@ -109,6 +110,12 @@ export default {
|
|
|
mounted() {
|
|
|
// 模拟 ajax 请求,异步渲染编辑器
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.getConfigKey("server_url").then(response => {
|
|
|
+ this.serverUrl = response.msg;
|
|
|
+ console.log(this.serverUrl);
|
|
|
+ });
|
|
|
+ },
|
|
|
beforeDestroy() {
|
|
|
const editor = this.editor;
|
|
|
if (editor == null) return;
|