perf: 优化重置功能

This commit is contained in:
王奥斯 2022-02-09 17:40:50 +08:00
parent d366d992b3
commit 13920b2969
5 changed files with 6 additions and 7 deletions

View File

@ -1,8 +1,8 @@
<template> <template>
<div id="app"> <div id="app">
<transition name="fade"> <!-- <transition name="fade"> -->
<router-view v-if="isRouterAlive" /> <router-view v-if="isRouterAlive" />
</transition> <!-- </transition> -->
</div> </div>
</template> </template>

View File

@ -32,7 +32,7 @@ export default {
methods: { methods: {
load() { load() {
this.loading = false this.loading = false
this.$refs["iframe"].contentWindow.postMessage(this.val, "*"); this.$refs["iframe"].contentWindow.postMessage(this.val, "http://was666.gitee.io");
}, },
}, },
} }

View File

@ -19,11 +19,11 @@
</el-form-item> </el-form-item>
<el-form-item class="lef" label="公众号名称"> <el-form-item class="lef" label="公众号名称">
<input type="text" placeholder="请输入公众号名称" /> <el-input type="text" v-model="datas.followName" placeholder="请输入公众号名称" />
</el-form-item> </el-form-item>
<el-form-item class="lef" label="公众号Id"> <el-form-item class="lef" label="公众号Id">
<input type="text" placeholder="请输入公众号Id" /> <el-input type="text" v-model="datas.followAppId" placeholder="请输入公众号Id" />
</el-form-item> </el-form-item>
</el-form> </el-form>

View File

@ -513,7 +513,6 @@ export default {
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
this.$router.push({ path: 'home' })
this.reload() this.reload()
}) })
.catch(() => {}) .catch(() => {})

View File

@ -378,7 +378,7 @@ componentProperties.set('follow', {
setStyle: { setStyle: {
text: '关注公众号', text: '关注公众号',
heade: 'https://imgs.starfirelink.com/miniShop//logo_1618466110849.png', heade: 'https://imgs.starfirelink.com/miniShop//logo_1618466110849.png',
followName: '星火', followName: '公众号名称',
followAppId: '', followAppId: '',
}, },
}) })