解决运行时报Variable 'id' is already declared in the upper scope vue/no-template-shadow

This commit is contained in:
puhui999 2023-03-06 15:33:34 +08:00
parent cbc21c33b1
commit d95de359e3

View File

@ -11,10 +11,10 @@
> >
<el-select v-model="bindMessageId" @change="updateTaskMessage"> <el-select v-model="bindMessageId" @change="updateTaskMessage">
<el-option <el-option
v-for="id in Object.keys(messageMap)" v-for="key in Object.keys(messageMap)"
:value="id" :value="key"
:label="messageMap[id]" :label="messageMap[key]"
:key="id" :key="key"
/> />
</el-select> </el-select>
<XButton <XButton