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.
package/apps/pivot/menu.yml
CHANGED
package/apps/pivot/proxy/list.js
CHANGED
|
@@ -3,7 +3,7 @@ var actions = [
|
|
|
3
3
|
name: "访问",
|
|
4
4
|
do(o) {
|
|
5
5
|
var url = o.url;
|
|
6
|
-
if (
|
|
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
|
|
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) {
|