Commit 97d5ae63 authored by bianlongting's avatar bianlongting 💬

fix

parent b8ab43b5
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
"Import single": "导入单", "Import single": "导入单",
"Import multi": "导入多", "Import multi": "导入多",
"Import view success": "视图导入成功", "Import view success": "视图导入成功",
"Input projectx id": "请舒服{envName}星速台项目ID", "Input projectx id": "请输入{envName}星速台项目ID",
"Save template to projectx": "是否保存皮肤到星速台", "Save template to projectx": "是否保存皮肤到星速台",
"eventGroup": { "eventGroup": {
"in": "接收", "in": "接收",
......
...@@ -76,9 +76,9 @@ export default { ...@@ -76,9 +76,9 @@ export default {
}, },
data() { data() {
return { return {
pxEnvs: this.$t('pxEnvs'), pxEnvs: this.$t("pxEnvs"),
tplOperates: this.$t('tplOperates'), tplOperates: this.$t("tplOperates"),
tplTypes: this.$t('tplTypes'), tplTypes: this.$t("tplTypes"),
env: "dev", env: "dev",
operate: 1, operate: 1,
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
}, },
hasIndex() { hasIndex() {
const { skinList } = this; const { skinList } = this;
return skinList.some(v => v.type === '1'); return skinList.some(v => v.type === "1");
}, },
async saveSkins() { async saveSkins() {
const { const {
...@@ -209,14 +209,20 @@ export default { ...@@ -209,14 +209,20 @@ export default {
}, },
/** 获取访问链接 */ /** 获取访问链接 */
getUrl() { 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 = { const mapping = {
dev: "activity.m.duibadev.com.cn", dev: "activity.m.duibadev.com.cn",
test: "activity.m.duibatest.com.cn", test: "activity.m.duibatest.com.cn",
prod: "https://activity.m.duiba.com.cn" prod: "https://activity.m.duiba.com.cn"
}; };
const url = `${mapping[env]}/projectx/${projectId}/${ const url = `${mapping[env]}/projectx/${projectId}/${
tplType === 0 ? "index" : skinId type === "1" ? "index" : skinId
}.html`; }.html`;
copy(url); copy(url);
this.$message({ this.$message({
......
...@@ -6783,6 +6783,10 @@ promise-inflight@^1.0.1: ...@@ -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" resolved "https://registry.npm.taobao.org/promise-inflight/download/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3"
integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM= 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: proxy-addr@~2.0.5:
version "2.0.5" version "2.0.5"
resolved "https://registry.npm.taobao.org/proxy-addr/download/proxy-addr-2.0.5.tgz#34cbd64a2d81f4b1fd21e76f9f06c8a45299ee34" 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