解决运行时报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-option
v-for="id in Object.keys(messageMap)"
:value="id"
:label="messageMap[id]"
:key="id"
v-for="key in Object.keys(messageMap)"
:value="key"
:label="messageMap[key]"
:key="key"
/>
</el-select>
<XButton