@mce/bigesj 0.15.27 → 0.15.28
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/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ function useFonts() {
|
|
|
30
30
|
async function loadBigeFonts(url, init = false) {
|
|
31
31
|
let result = bigeFonts.value;
|
|
32
32
|
if (!init || !result.length) {
|
|
33
|
-
result = await http.request({ url, responseType: "json" }).then((res) => res.data.datalist);
|
|
33
|
+
result = await http.request({ url, responseType: "json" }).then((res) => res.code === 200 ? res.data : res).then((res) => res.datalist);
|
|
34
34
|
bigeFonts.value = result;
|
|
35
35
|
}
|
|
36
36
|
return result;
|
|
@@ -1726,7 +1726,7 @@ function bidTidLoader(editor, api) {
|
|
|
1726
1726
|
return await http.request({
|
|
1727
1727
|
url: (source.bid ? api.bid : api.tid).replace("%d", id),
|
|
1728
1728
|
responseType: "json"
|
|
1729
|
-
}).then((res) => res.data);
|
|
1729
|
+
}).then((res) => res.code === 200 ? res.data : res);
|
|
1730
1730
|
};
|
|
1731
1731
|
let maxTime = 0;
|
|
1732
1732
|
const docs = await Promise.all(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mce/bigesj",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.28",
|
|
5
5
|
"description": "Plugin for mce",
|
|
6
6
|
"author": "wxm",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"modern-openxml": "^1.10.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"mce": "0.15.
|
|
52
|
+
"mce": "0.15.28"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"mce": "^0"
|