@jx3box/jx3box-editor 1.2.5 → 1.2.8

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-editor",
3
- "version": "1.2.5",
3
+ "version": "1.2.8",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Resource.vue CHANGED
@@ -8,8 +8,8 @@
8
8
  <div class="c-resource-content" v-loading="loading">
9
9
  <div class="m-database-search">
10
10
  <el-radio-group class="u-client" v-model="client" @change="search">
11
- <el-radio-button label="std">正式服</el-radio-button>
12
- <el-radio-button label="origin">怀旧服</el-radio-button>
11
+ <el-radio-button label="std">重制</el-radio-button>
12
+ <el-radio-button label="origin">缘起</el-radio-button>
13
13
  </el-radio-group>
14
14
  <el-input class="u-input" placeholder="请输入 ID 或 名称" v-model="query" @change="search" @keyup.enter.native="search">
15
15
  <template slot="prepend">ID /名称</template>
@@ -108,7 +108,7 @@
108
108
  </span>
109
109
  </li>
110
110
 
111
- <jx3-item :item_id="o.id"></jx3-item>
111
+ <jx3-item :item_id="o.id" :client="client"></jx3-item>
112
112
  </el-popover>
113
113
  </ul>
114
114
  <el-alert v-if="!item.length && done" title="没有找到相关条目" type="info" show-icon></el-alert>
@@ -340,6 +340,7 @@ export default {
340
340
  }
341
341
  },
342
342
  search: function() {
343
+ this.page = 1;
343
344
  this.getData();
344
345
  },
345
346
  appendPage: function() {
package/src/Upload.vue CHANGED
@@ -137,12 +137,12 @@
137
137
  .post(API, fdata, {
138
138
  headers: {
139
139
  "Content-Type": "multipart/form-data",
140
- auth: {
140
+ },
141
+ withCredentials: true,
142
+ auth: {
141
143
  username: (localStorage && localStorage.getItem("token")) || "",
142
144
  password: "cms common request",
143
145
  },
144
- },
145
- withCredentials: true,
146
146
  })
147
147
  .then((res) => {
148
148
  if (res.data.code) {