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 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.0-beta'}"></script>
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.0-beta';
27
+ const version = '3.2.1-beta2';
28
28
  function getVersion() {
29
29
  return version;
30
30
  }
package/dist/clickgo.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- const version = '3.2.0-beta';
16
+ const version = '3.2.1-beta2';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
package/dist/lib/fs.ts CHANGED
@@ -129,7 +129,7 @@ export async function getContent(path: string, options?: BufferEncoding | {
129
129
  }
130
130
  ourl = tool.urlResolve(__dirname, './').slice(0, -1) + fpath;
131
131
  }
132
- else {
132
+ else {
133
133
  ourl = path;
134
134
  }
135
135
  try {
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
- path = tool.urlResolve(task.current + '/', path) + '.json';
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.2.0-beta",
3
+ "version": "3.2.1-beta2",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",