搜索结果
查询Tags标签: isRouterAlive,共有 4条记录-
vue,如何每次访问同样路由都可以刷新
利用v-if控制: <router-view v-if="isRouterAlive"></router-view>data() {return {isRouterAlive: true}},methods:{reload () {this.isRouterAlive = falsethis.$nextTick(() => (this.isRouterAlive = true))}, //每次点击调用get01(val) {t…
2022/1/4 23:14:40 人评论 次浏览 -
vue,如何每次访问同样路由都可以刷新
利用v-if控制: <router-view v-if="isRouterAlive"></router-view>data() {return {isRouterAlive: true}},methods:{reload () {this.isRouterAlive = falsethis.$nextTick(() => (this.isRouterAlive = true))}, //每次点击调用get01(val) {t…
2022/1/4 23:14:40 人评论 次浏览 -
vue 巧妙刷新 provide 和 inject
import { provide} from "vue";<router-view v-if="isRouterAlive"></router-view> let globeData = reactive({isRouterAlive: true})function reload () {globeData.isRouterAlive = false;nextTick(function () {globeData.isRouterAl…
2021/9/11 23:08:53 人评论 次浏览 -
vue 巧妙刷新 provide 和 inject
import { provide} from "vue";<router-view v-if="isRouterAlive"></router-view> let globeData = reactive({isRouterAlive: true})function reload () {globeData.isRouterAlive = false;nextTick(function () {globeData.isRouterAl…
2021/9/11 23:08:53 人评论 次浏览