作业:图片样式切换

This commit is contained in:
Code12121 2022-10-31 18:30:28 +08:00
parent f5c99e9223
commit dca57e0842
2 changed files with 17 additions and 0 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

@ -34,6 +34,8 @@ const vue = new Vue({
Changeth() { Changeth() {
if (this.isTip == "fa fa-th") { if (this.isTip == "fa fa-th") {
this.isGet = false this.isGet = false
}
if (this.isGet == false) {
return { color: this.isColor } return { color: this.isColor }
} }
} }