@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.
- package/package.json +1 -1
- package/src/GameText.vue +2 -1
package/package.json
CHANGED
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-
|
|
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)
|