mooho-base-admin-plus 0.4.5 → 0.4.6
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.
|
@@ -12048,12 +12048,11 @@ function errorLog(err) {
|
|
|
12048
12048
|
const service = axios.create({});
|
|
12049
12049
|
const tParam = (str) => {
|
|
12050
12050
|
let array = str.split("|");
|
|
12051
|
-
let
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
}
|
|
12051
|
+
let key = array[0];
|
|
12052
|
+
array.shift();
|
|
12053
|
+
let result2 = window.$t(key, array);
|
|
12054
|
+
for (let i2 = 0; i2 < array.length; i2++) {
|
|
12055
|
+
result2 = result2.replace("[" + i2 + "]", array[i2]);
|
|
12057
12056
|
}
|
|
12058
12057
|
return result2;
|
|
12059
12058
|
};
|
|
@@ -20116,15 +20115,10 @@ var mixinPage = {
|
|
|
20116
20115
|
}
|
|
20117
20116
|
},
|
|
20118
20117
|
tParam(str) {
|
|
20119
|
-
console.log("str", str);
|
|
20120
20118
|
let array = str.split("|");
|
|
20121
|
-
let
|
|
20122
|
-
|
|
20123
|
-
|
|
20124
|
-
result2 = result2.replace("[" + i2 + "]", array[i2 + 1]);
|
|
20125
|
-
}
|
|
20126
|
-
}
|
|
20127
|
-
return result2;
|
|
20119
|
+
let key = array[0];
|
|
20120
|
+
array.shift();
|
|
20121
|
+
return this.$t(key, array);
|
|
20128
20122
|
}
|
|
20129
20123
|
}
|
|
20130
20124
|
};
|