Commit eb36afc5 authored by 黄卓然's avatar 黄卓然

添加按钮

parent d4c06eac
...@@ -17,6 +17,9 @@ export const list = [{ ...@@ -17,6 +17,9 @@ export const list = [{
}, { }, {
key: 'showLock', key: 'showLock',
commit: 'SET_SHOWLOCK' commit: 'SET_SHOWLOCK'
}, {
key: 'showPageAdd',
commit: 'SET_SHOWPAGEADD'
}, { }, {
key: 'showDebug', key: 'showDebug',
commit: 'SET_SHOWDEBUG' commit: 'SET_SHOWDEBUG'
......
...@@ -19,21 +19,21 @@ ...@@ -19,21 +19,21 @@
</span> </span>
</h1> </h1>
<div class="top-bar__right"> <div class="top-bar__right">
<el-tooltip v-if="showPageAdd" <el-tooltip v-if="showColor"
effect="dark" effect="dark"
content="添加页面" content="主题色"
placement="bottom"> placement="bottom">
<div class="top-bar__item"> <div class="top-bar__item">
<i class="el-icon-circle-plis-outline" <top-color></top-color>
@click="handleScreen"></i>
</div> </div>
</el-tooltip> </el-tooltip>
<el-tooltip v-if="showColor" <el-tooltip v-if="showPageAdd"
effect="dark" effect="dark"
content="主题色" content="添加页面"
placement="bottom"> placement="bottom">
<div class="top-bar__item"> <div class="top-bar__item">
<top-color></top-color> <i class="el-icon-circle-plus-outline" @click="showPage"
></i>
</div> </div>
</el-tooltip> </el-tooltip>
<el-tooltip v-if="showDebug" <el-tooltip v-if="showDebug"
...@@ -142,7 +142,12 @@ export default { ...@@ -142,7 +142,12 @@ export default {
fullscreenToggel(); fullscreenToggel();
}, },
showPage (){ showPage (){
alert('出页面'); this.$router.push({
path: this.$router.$avueRouter.getPath({
name: "添加页面",
src: window.location.origin+"/wp-admin/post-new.php"
}),
})
}, },
setCollapse () { setCollapse () {
this.$store.commit("SET_COLLAPSE"); this.$store.commit("SET_COLLAPSE");
......
const url = 'http://127.0.0.1:19999' const url = 'http://127.0.0.1:9999'
// const url = 'http://pig.haomo-tech.com:9998' // const url = 'http://pig.haomo-tech.com:9998'
module.exports = { module.exports = {
publicPath: 'http://guten-pigx.haomo-tech.com/pigx/', publicPath: 'http://guten-pigx.haomo-tech.com/pigx/',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment