Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
authority
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 52e2fb3b
authored
Aug 29, 2018
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
create
1 parent
d98b7bc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
src/main.js
src/main.js
View file @
52e2fb3
...
...
@@ -5,8 +5,7 @@ import App from './App'
import
router
from
'@/router/index.js'
import
GlsxVueComponents
from
'glsx-vue-components'
import
'glsx-vue-components/dist/glsx-vue-components.css'
import
{
GlsxVueCommon
,
GlConst
}
from
'glsx-vue-common'
const
{
AppConst
}
=
GlConst
import
GlsxVueCommon
from
'glsx-vue-common'
// import _ from 'lodash'
Vue
.
use
(
GlsxVueComponents
)
...
...
@@ -14,23 +13,24 @@ Vue.use(GlsxVueCommon)
var
mixin
=
{
mounted
()
{
const
_this
=
this
const
theme
=
new
this
.
$Theme
()
const
menus
=
new
this
.
$get_config_by_key
(
AppConst
.
Auth
.
Resources
.
Key
)
const
connection
=
this
.
$Penpal
.
connectToParent
({
methods
:
{
setTheme
(
color
)
{
theme
.
change
(
color
)
},
setResources
(
resources
)
{
menus
.
change
(
resources
)
},
height
()
{
return
document
.
height
||
document
.
body
.
offsetHeight
// document.documentElement.clientHeight || document.body.clientHeight //
}
}
})
connection
.
promise
.
then
(
parent
=>
{
parent
.
onload
()
const
cfg
=
_this
.
$get_session_config
()
if
(
cfg
)
return
parent
.
getResources
().
then
(
config
=>
{
_this
.
$set_session_config
(
config
)
})
})
}
}
...
...
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