Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
07fefc85
Commit
07fefc85
authored
Mar 30, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并成功。
parent
ee815659
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
52 deletions
+4
-52
index.vue
pages/index.vue
+4
-52
No files found.
pages/index.vue
View file @
07fefc85
<
template
>
<div
class=
"container"
>
<div>
<logo
/>
<h1
class=
"title"
>
admin
</h1>
<h2
class=
"subtitle"
>
this is init project
</h2>
<div
class=
"links"
>
<a
href=
"https://nuxtjs.org/"
target=
"_blank"
class=
"button--green"
>
Documentation
</a>
<a
href=
"https://github.com/nuxt/nuxt.js"
target=
"_blank"
class=
"button--grey"
>
GitHub222
</a>
<h1>
总数:
{{
counter
}}
</h1>
<h2>
admin,user
{{
this
.
$store
.
state
.
admin
.
user
.
counter
}}
</h2>
<Button
@
click=
"increment"
>
+
</Button>
<Button
type=
"error"
v-auth=
"['admin2']"
@
click=
"log"
>
log
</Button>
<Button
type=
"error"
@
click=
"log"
>
log
</Button>
</div>
</div>
<iview/>
</div>
</
template
>
<
script
>
import
{
mapState
}
from
'vuex'
import
Logo
from
'~/components/Logo.vue'
import
iview
from
'./crm/statistical/index.vue'
export
default
{
fetch
({
store
})
{
store
.
commit
(
'increment'
)
},
computed
:
mapState
([
'counter'
]),
components
:
{
Logo
},
methods
:
{
increment
()
{
this
.
$store
.
commit
(
'increment'
)
},
log
(){
this
.
$log
.
push
(
"这是一个错误!"
)
this
.
$log
.
capsule
(
'iView'
,
'Success'
,
this
);
if
(
process
.
env
.
NODE_ENV
===
'development'
){
alert
(
123
)
}
alert
(
abc
)
}
iview
}
}
</
script
>
\ No newline at end of file
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