@jx3box/jx3box-editor 1.4.10 → 1.4.11

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/GameText.vue +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "1.4.10",
3
+ "version": "1.4.11",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/GameText.vue CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: X3ZvaWQ
3
3
  * @Date: 2022-08-20 20:23:57
4
4
  * @LastEditors: X3ZvaWQ
5
- * @LastEditTime: 2022-08-23 20:36:40
5
+ * @LastEditTime: 2022-08-24 22:32:56
6
6
  * @Description: 用于渲染游戏内Text标签的文本
7
7
  -->
8
8
  <template>
@@ -146,6 +146,7 @@ export default {
146
146
  },
147
147
  renderEnchantResource: function () {
148
148
  const matches = this.html.match(/<ENCHANT (\d+)>/gim);
149
+ if(!matches) return;
149
150
  for (let match of matches) {
150
151
  let enchant_id = match.match(/<ENCHANT (\d+)>/i)[1];
151
152
  getResource(`enchant.${enchant_id}`, this.client)