Commit 185a0604 authored by Pani's avatar Pani

description fixed 16 char

parent c615f9fc
Pipeline #447 passed with stages
in 6 minutes and 59 seconds
......@@ -16,9 +16,16 @@
<div class="group-select-container">
<div class="sub-switch" v-for="(subItem, index2) in item.sets" v-bind:key="'sub'+index2">
<el-switch
v-if="subItem.description === null || subItem.description === ''"
v-model="subItem.here"
@change="handleChange(index, index2)"
:active-text="subItem.name+' ('+ subItem.description +')'">
:active-text="subItem.name">
</el-switch>
<el-switch
v-else
v-model="subItem.here"
@change="handleChange(index, index2)"
:active-text="subItem.name+' ('+ splitDesc(subItem.description) +')'">
</el-switch>
</div>
......@@ -50,13 +57,19 @@
nowSelect: '',
refreshIcon: 'el-icon-refresh-right'
}
},
computed: {
},
methods: {
splitDesc(desc){
return desc.split('').splice(0,16).join('')
},
refreshNode(){
this.refreshIcon = 'el-icon-loading';
const that = this;
this.axios.get(APP_DOMAIN + '/api/get').then((res)=>{
console.log(res);
// console.log(res);
that.info = res.data;
that.refreshIcon = 'el-icon-refresh-right';
that.$message({
......
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