@jx3box/jx3box-common-ui 9.0.13 → 9.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "9.0.13",
3
+ "version": "9.0.15",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/service/cms.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { $cms } from "@jx3box/jx3box-common/js/https";
2
2
  import axios from "axios";
3
- import { __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
3
+ import { __cdn } from "@jx3box/jx3box-common/data/jx3box.json";
4
4
  function getPostAuthors(post_id) {
5
5
  return $cms({ mute: true }).get(`/api/cms/post/${post_id}/authors`);
6
6
  }
@@ -15,7 +15,7 @@ function getDecoration(params) {
15
15
  });
16
16
  }
17
17
  function getDecorationJson() {
18
- let url = __imgPath + "decoration/index.json";
18
+ let url = __cdn + "design/decoration/index.json";
19
19
  return axios.get(url);
20
20
  }
21
21
  // 通用上传
@@ -24,6 +24,9 @@
24
24
  </el-select>
25
25
  </span>
26
26
  <el-input v-model="form.title" placeholder="请输入标题" class="input-author drawer-item-content">
27
+ <template #append>
28
+ <el-button icon="el-icon-edit" @click="onEdit"></el-button>
29
+ </template>
27
30
  </el-input>
28
31
  </div>
29
32
  </div>
@@ -406,6 +409,9 @@ export default {
406
409
  removeBanner: function () {
407
410
  this.post_banner = "";
408
411
  },
412
+ onEdit() {
413
+ window.open(`/publish/#/community/${this.postId}?from=admin`, "_blank")
414
+ }
409
415
  },
410
416
  };
411
417
  </script>