Commit dc09d994 by jlc

update:代码优化

parent 992d680b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="mt-5"> <div class="mt-5">
<span class="text-base font-bold">点的案例</span> <span class="text-base font-bold">点的案例</span>
<div style="overflow-y: auto" class="container"> <div style="overflow-y: auto" class="container">
<div v-for="item in elementPointData" :key="item.id" @click="indexBtn(`${item.title}`)" class="item-container"> <div v-for="item in elementPointData" :key="item.id" @click="indexBtn(item.title)" class="item-container">
<div :id="item.title">{{item.title}}</div> <div :id="item.title">{{item.title}}</div>
<img :src="item.pngUrl" width="250"> <img :src="item.pngUrl" width="250">
</div> </div>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<div class="mt-10"> <div class="mt-10">
<span class="text-base font-bold">线的案例</span> <span class="text-base font-bold">线的案例</span>
<div style="overflow-y: auto" class="container"> <div style="overflow-y: auto" class="container">
<div v-for="item in elementLineData" :key="item.id" @click="indexBtn(`${item.title}`)" class="item-container"> <div v-for="item in elementLineData" :key="item.id" @click="indexBtn(item.title)" class="item-container">
<div :id="item.title">{{item.title}}</div> <div :id="item.title">{{item.title}}</div>
<img :src="item.pngUrl" width="250"> <img :src="item.pngUrl" width="250">
</div> </div>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<div class="mt-10"> <div class="mt-10">
<span class="text-base font-bold">面的案例</span> <span class="text-base font-bold">面的案例</span>
<div style="overflow-y: auto" class="container"> <div style="overflow-y: auto" class="container">
<div v-for="item in elementPlaneData" :key="item.id" @click="indexBtn(`${item.title}`)" class="item-container"> <div v-for="item in elementPlaneData" :key="item.id" @click="indexBtn(item.title)" class="item-container">
<div :id="item.title">{{item.title}}</div> <div :id="item.title">{{item.title}}</div>
<img :src="item.pngUrl" width="250"> <img :src="item.pngUrl" width="250">
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment