Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Guten-PigxUI
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
JIRA
JIRA
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
黄卓然
Guten-PigxUI
Commits
eb36afc5
Commit
eb36afc5
authored
Aug 14, 2019
by
黄卓然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加按钮
parent
d4c06eac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
index.js
src/const/setting/index.js
+3
-0
index.vue
src/page/index/top/index.vue
+13
-8
vue.config.js
vue.config.js
+1
-1
No files found.
src/const/setting/index.js
View file @
eb36afc5
...
...
@@ -17,6 +17,9 @@ export const list = [{
},
{
key
:
'showLock'
,
commit
:
'SET_SHOWLOCK'
},
{
key
:
'showPageAdd'
,
commit
:
'SET_SHOWPAGEADD'
},
{
key
:
'showDebug'
,
commit
:
'SET_SHOWDEBUG'
...
...
src/page/index/top/index.vue
View file @
eb36afc5
...
...
@@ -19,21 +19,21 @@
</span>
</h1>
<div
class=
"top-bar__right"
>
<el-tooltip
v-if=
"show
PageAdd
"
<el-tooltip
v-if=
"show
Color
"
effect=
"dark"
content=
"
添加页面
"
content=
"
主题色
"
placement=
"bottom"
>
<div
class=
"top-bar__item"
>
<i
class=
"el-icon-circle-plis-outline"
@
click=
"handleScreen"
></i>
<top-color></top-color>
</div>
</el-tooltip>
<el-tooltip
v-if=
"show
Color
"
<el-tooltip
v-if=
"show
PageAdd
"
effect=
"dark"
content=
"
主题色
"
content=
"
添加页面
"
placement=
"bottom"
>
<div
class=
"top-bar__item"
>
<top-color></top-color>
<i
class=
"el-icon-circle-plus-outline"
@
click=
"showPage"
></i>
</div>
</el-tooltip>
<el-tooltip
v-if=
"showDebug"
...
...
@@ -142,7 +142,12 @@ export default {
fullscreenToggel
();
},
showPage
(){
alert
(
'出页面'
);
this
.
$router
.
push
({
path
:
this
.
$router
.
$avueRouter
.
getPath
({
name
:
"添加页面"
,
src
:
window
.
location
.
origin
+
"/wp-admin/post-new.php"
}),
})
},
setCollapse
()
{
this
.
$store
.
commit
(
"SET_COLLAPSE"
);
...
...
vue.config.js
View file @
eb36afc5
const
url
=
'http://127.0.0.1:
1
9999'
const
url
=
'http://127.0.0.1:9999'
// const url = 'http://pig.haomo-tech.com:9998'
module
.
exports
=
{
publicPath
:
'http://guten-pigx.haomo-tech.com/pigx/'
,
...
...
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