Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
aac246a8
Commit
aac246a8
authored
Aug 26, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除页面
parent
70e867f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
74 deletions
+0
-74
src/app.json
+0
-1
src/pages/counter/index.vue
+0
-44
src/pages/counter/main.js
+0
-5
src/pages/counter/store.js
+0
-24
No files found.
src/app.json
View file @
aac246a8
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
"pages/index/main"
,
"pages/index/main"
,
"pages/login/main"
,
"pages/login/main"
,
"pages/wxPay/main"
,
"pages/wxPay/main"
,
"pages/counter/main"
,
"pages/address/main"
,
"pages/address/main"
,
"pages/contact/main"
,
"pages/contact/main"
,
"pages/officialAccount/main"
,
"pages/officialAccount/main"
,
...
...
src/pages/counter/index.vue
deleted
100644 → 0
View file @
70e867f4
<
template
>
<div
class=
"counter-warp"
>
<p>
Vuex counter:
{{
count
}}
</p>
<p>
<button
@
click=
"increment"
>
+
</button>
<button
@
click=
"decrement"
>
-
</button>
</p>
</div>
</
template
>
<
script
>
// Use Vuex
import
store
from
'./store'
export
default
{
computed
:
{
count
()
{
return
store
.
state
.
count
}
},
methods
:
{
increment
()
{
store
.
commit
(
'increment'
)
},
decrement
()
{
store
.
commit
(
'decrement'
)
}
}
}
</
script
>
<
style
>
.counter-warp
{
text-align
:
center
;
margin-top
:
100px
;
}
.home
{
display
:
inline-block
;
margin
:
100px
auto
;
padding
:
5px
10px
;
color
:
blue
;
border
:
1px
solid
blue
;
}
</
style
>
src/pages/counter/main.js
deleted
100644 → 0
View file @
70e867f4
import
Vue
from
'vue'
import
App
from
'./index'
const
app
=
new
Vue
(
App
)
app
.
$mount
()
src/pages/counter/store.js
deleted
100644 → 0
View file @
70e867f4
// https://vuex.vuejs.org/zh-cn/intro.html
// make sure to call Vue.use(Vuex) if using a module system
import
Vue
from
'vue'
import
Vuex
from
'vuex'
Vue
.
use
(
Vuex
)
const
store
=
new
Vuex
.
Store
({
state
:
{
count
:
0
},
mutations
:
{
increment
:
(
state
)
=>
{
const
obj
=
state
obj
.
count
+=
1
},
decrement
:
(
state
)
=>
{
const
obj
=
state
obj
.
count
-=
1
}
}
})
export
default
store
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment