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

添加按钮

parent d4c06eac
......@@ -17,6 +17,9 @@ export const list = [{
}, {
key: 'showLock',
commit: 'SET_SHOWLOCK'
}, {
key: 'showPageAdd',
commit: 'SET_SHOWPAGEADD'
}, {
key: 'showDebug',
commit: 'SET_SHOWDEBUG'
......
......@@ -19,21 +19,21 @@
</span>
</h1>
<div class="top-bar__right">
<el-tooltip v-if="showPageAdd"
<el-tooltip v-if="showColor"
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="showColor"
<el-tooltip v-if="showPageAdd"
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");
......
const url = 'http://127.0.0.1:19999'
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/',
......
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