clickgo 3.2.0-beta → 3.2.1-beta2
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/README.md +1 -1
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/lib/fs.ts +1 -1
- package/dist/lib/task.js +1 -2
- package/dist/lib/task.ts +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Load the module loader first, and then load it using the module loader.
|
|
|
28
28
|
**index.html**
|
|
29
29
|
|
|
30
30
|
```html
|
|
31
|
-
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.4.9/dist/loader.min.js?path=index&npm={'clickgo':'3.2.
|
|
31
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.4.9/dist/loader.min.js?path=index&npm={'clickgo':'3.2.1-beta2}"></script>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
**index.js**
|
package/dist/clickgo.js
CHANGED
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.zip = exports.tool = exports.theme = exports.task = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.hasFrame = exports.isImmersion = exports.getPlatform = exports.isNative = exports.getVersion = void 0;
|
|
27
|
-
const version = '3.2.
|
|
27
|
+
const version = '3.2.1-beta2';
|
|
28
28
|
function getVersion() {
|
|
29
29
|
return version;
|
|
30
30
|
}
|
package/dist/clickgo.ts
CHANGED
package/dist/lib/fs.ts
CHANGED
package/dist/lib/task.js
CHANGED
|
@@ -1332,8 +1332,7 @@ function loadLocale(lang, path, taskId) {
|
|
|
1332
1332
|
if (!task) {
|
|
1333
1333
|
return false;
|
|
1334
1334
|
}
|
|
1335
|
-
|
|
1336
|
-
const fcontent = yield fs.getContent(path, {
|
|
1335
|
+
const fcontent = yield fs.getContent(path + '.json', {
|
|
1337
1336
|
'encoding': 'utf8'
|
|
1338
1337
|
}, taskId);
|
|
1339
1338
|
if (!fcontent) {
|
package/dist/lib/task.ts
CHANGED
|
@@ -1518,10 +1518,8 @@ export async function loadLocale(lang: string, path: string, taskId?: number): P
|
|
|
1518
1518
|
if (!task) {
|
|
1519
1519
|
return false;
|
|
1520
1520
|
}
|
|
1521
|
-
/** --- 当前父 form 的路径(以 / 结尾)或 /(没有基路径的话) --- */
|
|
1522
|
-
path = tool.urlResolve(task.current + '/', path) + '.json';
|
|
1523
1521
|
/** --- 获取的语言文件 --- */
|
|
1524
|
-
const fcontent = await fs.getContent(path, {
|
|
1522
|
+
const fcontent = await fs.getContent(path + '.json', {
|
|
1525
1523
|
'encoding': 'utf8'
|
|
1526
1524
|
}, taskId);
|
|
1527
1525
|
if (!fcontent) {
|