|
|
@@ -12,6 +12,7 @@
|
|
|
<el-option v-for="(item, index) in tableList" :key="index" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
<el-button style="margin-left: 5px" type="plain" icon="el-icon-plus" @click="onAddChannel">添加</el-button>
|
|
|
+ <el-button style="margin-left: 5px" type="plain" icon="el-icon-plus" @click="onInitChannel">初始化</el-button>
|
|
|
</el-row>
|
|
|
</el-header>
|
|
|
<el-main>
|
|
|
@@ -142,7 +143,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {addChannel, getChannelAttr, getChannelList, getUserNodeKeyValue} from '@/api/oss'
|
|
|
+import { addChannel, getChannelAttr, getChannelList, getUserNodeKeyValue, initChannel } from '@/api/oss'
|
|
|
|
|
|
export default {
|
|
|
name: 'AdminUploadChannel',
|
|
|
@@ -263,6 +264,13 @@ export default {
|
|
|
addChannel(this.myChannelForm).then(resp => {
|
|
|
this.$message.info(resp.msg)
|
|
|
})
|
|
|
+ },
|
|
|
+ onInitChannel() {
|
|
|
+ initChannel().then(resp => {
|
|
|
+ this.$message.info(resp.msg)
|
|
|
+ }).catch(error => {
|
|
|
+ this.$message.error(error.message)
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|