Commit 73c6ac18 authored by rockyl's avatar rockyl

修改保存到星速台失败的问题

parent adc03cf2
......@@ -35,9 +35,9 @@
placement="bottom"
width="400"
:title="$t('Publish to projectx')"
@show="onPopoverPublishShow"
@show="onPopoverPublishShow(scope.row.packResult.tpl, scope.$index)"
>
<publish-view ref="popoverPublish"></publish-view>
<publish-view :ref="'popoverPublish_' + scope.$index"></publish-view>
<el-button
slot="reference"
icon="el-icon-s-promotion"
......@@ -116,8 +116,8 @@
this.visible = true;
this.historyItems = await this.getPackHistory();
},
onPopoverPublishShow(){
this.$refs.popoverPublish.active();
onPopoverPublishShow(tpl, index){
this.$refs['popoverPublish_' + index].active(tpl);
},
onPack() {
this.$emit('pack');
......
......@@ -26,7 +26,7 @@
</el-select>
<el-input v-model="name" size="small" class="name" placeholder="请输入皮肤名称"></el-input>
</div>&nbsp;
<el-button type="primary" size="small" @click="saveSkins">保存</el-button>
<el-button type="primary" size="small" @click="clickSave">保存</el-button>
<el-button v-if="skinId" type="primary" size="small" @click="getUrl">获取链接</el-button>
</div>
</template>
......@@ -55,7 +55,6 @@
},
data() {
return {
tpl: '',
pxEnvs: this.$t("pxEnvs"),
tplOperates: this.$t("tplOperates"),
tplTypes: this.$t("tplTypes"),
......@@ -135,7 +134,7 @@
const {skinList} = this;
return skinList.some(v => v.type === "1");
},
async saveSkins() {
async clickSave() {
const {
env,
skinId,
......
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