Prechádzať zdrojové kódy

修改文章管理、栏目管理

limeng 5 mesiacov pred
rodič
commit
7a98de6fb5
1 zmenil súbory, kde vykonal 7 pridanie a 0 odobranie
  1. 7 0
      zhjq-ui/src/components/MyEditor/index.vue

+ 7 - 0
zhjq-ui/src/components/MyEditor/index.vue

@@ -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;