Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ead25ffa
authored
Apr 23, 2021
by
fanx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
dc0a89cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
14 deletions
src/store/index.js
src/views/login/index.vue
src/store/index.js
View file @
ead25ff
import
Vue
from
'vue'
import
Vue
from
'vue'
import
Vuex
from
'vuex'
import
Vuex
from
'vuex'
import
VuexPersistence
from
'vuex-persist'
import
VuexPersistence
from
'vuex-persist'
import
createLogger
from
'vuex/dist/logger'
import
portal
from
'./modules/portal'
import
portal
from
'./modules/portal'
// vuex 数据存储 进行本地存储操作
// vuex 数据存储 进行本地存储操作
...
@@ -14,7 +15,8 @@ const store = new Vuex.Store({
...
@@ -14,7 +15,8 @@ const store = new Vuex.Store({
strict
:
process
.
env
.
NODE_ENV
!==
'production'
,
strict
:
process
.
env
.
NODE_ENV
!==
'production'
,
modules
:
{
modules
:
{
portal
portal
}
},
plugins
:
[
vuexLocal
.
plugin
,
createLogger
()]
})
})
export
default
store
export
default
store
src/views/login/index.vue
View file @
ead25ff
<
template
>
<
template
>
<div
class=
"login-container"
>
<div
class=
"login-container"
>
<a-form
:form=
"form"
class=
"login-form"
@
submit=
"handleSubmit"
>
<a-form
:form=
"form"
class=
"form"
@
submit=
"handleSubmit"
>
<a-form-item
class=
"form-item logo"
>
<a-form-item
class=
"form-item logo"
>
logo
logo
</a-form-item>
</a-form-item>
...
@@ -64,17 +63,9 @@ export default {
...
@@ -64,17 +63,9 @@ export default {
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-position
:
center
110px
;
background-position
:
center
110px
;
background-size
:
100%
;
background-size
:
100%
;
.form
{
.login-form
{
width
:
100%
;
width
:
400px
;
height
:
100%
;
margin
:
250px
auto
0
;
margin
:
0
auto
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
.form-item{
width
:
30%
;
}
.logo{
.logo{
text-align
:
center
;
text-align
:
center
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment