efront 4.2.1 → 4.2.2

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.
@@ -1,6 +1,6 @@
1
1
  首页: /home/welcome
2
2
  WEB:
3
- 短链接: /proxy/list
3
+ 路径映射: /proxy/list
4
4
  文件管理: /wow/root
5
5
  长连接管理: /link/index
6
6
  字典: /dict/list
@@ -3,7 +3,7 @@ var actions = [
3
3
  name: "访问",
4
4
  do(o) {
5
5
  var url = o.url;
6
- if (!/^\//.test(url)) url = "/" + url;
6
+ if (!/\//.test(url)) url = "//" + url;
7
7
  window.open(url, null);
8
8
  }
9
9
  }
@@ -12,7 +12,7 @@ var actions = [
12
12
  var fields = refilm`
13
13
  *代理路径/url input/120
14
14
  &二维码/url ${qrcode}
15
- 真实路径/realpath url/300
15
+ 真实路径/realpath input/300
16
16
  动作/action select/100 [跳转,转发]
17
17
  状态/status select/100 [启用,禁用]
18
18
  / $ ${actions}`;
@@ -132,7 +132,7 @@ function unfoldOptions(size, options) {
132
132
  for (var cx = 0, dx = options.length; cx < dx; cx++) {
133
133
  var o = options[cx];
134
134
  if (typeof o === 'string') {
135
- o = { name: o };
135
+ o = { name: o, key: o };
136
136
  }
137
137
  var range = rangereg.exec(o.name);
138
138
  if (range) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "简化前端开发,优化web性能",
5
5
  "main": "public/efront.js",
6
6
  "directories": {