fix: 替换:key="index",修复潜在缓存问题

This commit is contained in:
刘洪洪
2024-08-22 18:11:45 +08:00
parent d0c56545d4
commit 9d066abfa9
42 changed files with 81 additions and 81 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="HintInfo" id="myHint" @mouseenter="onMouseenter">
<ul style="padding-left: 0;margin: -10px 0 0 0;min-width: calc(100% - 12px)">
<template v-for="(item,index) in hintList" :key="index">
<template v-for="(item,index) in hintList" :key="item.displayText">
<li :ref="'hint_'+index" class="relative-item CodeMirror-hint"
style="margin-bottom: 2px"
@click="handleSelect(item,index,hintList)"