This commit is contained in:
Code12121 2022-10-20 09:53:04 +08:00
parent bb14dd9e29
commit 6f51e5588f
2 changed files with 17 additions and 1 deletions

15
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,15 @@
{
// 使 IntelliSense
//
// 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}

View File

@ -12,7 +12,8 @@
<div class="item" v-cloak>
<ul>
<h2>商品列表</h2>
<li v-for="items,index in list" @click="isChange(index)" :class="isChangeColor(index)">
<li v-for="items,index in list" @click="isChange(index)"
:class="isChangeColor(index)">
<div class="left">{{items.item}}</div>
<div class="right">{{items.price}}</div>
</li>