优化:更改IP后清楚重选

main
RogerWork 11 months ago
parent 3402f6acee
commit 956ca91d20
  1. 8
      src/views/mock/index.vue

@ -64,6 +64,12 @@ const mockConfig =
}
]
const handleIpChange = () => {
checkedMockConfig.value = []
checkAll.value = false
isIndeterminate.value = false
}
const handleCheckAllChange = (val) => {
if (select_ip.value === '') {
alert('请先选择测试影院IP!')
@ -118,7 +124,7 @@ onMounted(
>
<el-row justify="start">
<el-col :span="4">
<el-select v-model="select_ip" class="m-2" placeholder="选择要模拟的影院IP">
<el-select v-model="select_ip" class="m-2" placeholder="选择要模拟的影院IP" @change="handleIpChange">
<el-option
v-for="item in cinema_items.value"
:key="item.value"

Loading…
Cancel
Save