Commit 97d5ae63 authored by bianlongting's avatar bianlongting 💬

fix

parent b8ab43b5
......@@ -169,7 +169,7 @@
"Import single": "导入单",
"Import multi": "导入多",
"Import view success": "视图导入成功",
"Input projectx id": "请舒服{envName}星速台项目ID",
"Input projectx id": "请输入{envName}星速台项目ID",
"Save template to projectx": "是否保存皮肤到星速台",
"eventGroup": {
"in": "接收",
......
......@@ -76,9 +76,9 @@ export default {
},
data() {
return {
pxEnvs: this.$t('pxEnvs'),
tplOperates: this.$t('tplOperates'),
tplTypes: this.$t('tplTypes'),
pxEnvs: this.$t("pxEnvs"),
tplOperates: this.$t("tplOperates"),
tplTypes: this.$t("tplTypes"),
env: "dev",
operate: 1,
......@@ -155,7 +155,7 @@ export default {
},
hasIndex() {
const { skinList } = this;
return skinList.some(v => v.type === '1');
return skinList.some(v => v.type === "1");
},
async saveSkins() {
const {
......@@ -209,14 +209,20 @@ export default {
},
/** 获取访问链接 */
getUrl() {
const { tplType, env, skinId, projectId } = this;
const { tplType, env, skinId, projectId, skinList } = this;
let type = 1;
skinList.forEach(skin => {
if (skin.id === skinId) {
type = skin.type;
}
});
const mapping = {
dev: "activity.m.duibadev.com.cn",
test: "activity.m.duibatest.com.cn",
prod: "https://activity.m.duiba.com.cn"
};
const url = `${mapping[env]}/projectx/${projectId}/${
tplType === 0 ? "index" : skinId
type === "1" ? "index" : skinId
}.html`;
copy(url);
this.$message({
......
......@@ -6783,6 +6783,10 @@ promise-inflight@^1.0.1:
resolved "https://registry.npm.taobao.org/promise-inflight/download/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3"
integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM=
"props-compute@http://gitlab2.dui88.com/laoqifeng/props-compute.git":
version "1.0.0"
resolved "http://gitlab2.dui88.com/laoqifeng/props-compute.git#c676e9e12a06ccc3556101197171ee47e9ebdd3c"
proxy-addr@~2.0.5:
version "2.0.5"
resolved "https://registry.npm.taobao.org/proxy-addr/download/proxy-addr-2.0.5.tgz#34cbd64a2d81f4b1fd21e76f9f06c8a45299ee34"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment