当前位置:网站首页>新窗口打开页面-window.open
新窗口打开页面-window.open
2022-07-01 18:45:00 【古迪红尘】
点击目标文件-unionMap.vue -跳转到新窗口
src\views\gao\view\budget\pages\unionMap\unionMap.vue
点击右侧-工会经费大数据-大地图管理-工会地图
弹出新窗口
同级目录下新建Blank.vue
把unionMap.vue所有代码复制到Blank.vue
unionMap.vue 重写代码
<template>
<div>
<p>跳转新页面</p>
</div>
</template>
<script>
export default {
data () {
return {
}
},
created () {
// 重要代码
const _router = this.$router.resolve({
name: 'union_map_blank'
})
window.open(_router.href, '_blank')
}
}
</script>
<style>
</style>
给新添加文件Blank.vue创建路由
src\router\gao.js
可与目录文件unionMap.vue同级
{
path: 'unionMap',
name: 'unionMap',
component: () => import('@/views/gao/view/budget/pages/unionBigMap/unionMap.vue'),
meta: {
title: '工会地图', icon: 'dashboard', auth: true }
},
{
path: 'union_map_blank',
name: 'union_map_blank',
component: () => import('@/views/gao/view/budget/pages/unionBigMap/Blank.vue'),
meta: {
title: '工会地图', icon: 'dashboard', auth: true }
}
边栏推荐
- Summary of SQL query de duplication statistics methods
- Extensive reading of the paper [film: visual reasoning with a general condition layer]
- 奔赴山海之前,毕业季一定要做的那些事情
- The intelligent epidemic prevention system provides safety guarantee for the resumption of work and production at the construction site
- [go ~ 0 to 1] day 4 June 30 defer, structure, method
- Introduction and installation of crunch, and making password dictionary with crunch
- Uni app wechat applet one click login to obtain permission function
- win10下使用msys+vs2019编译ffmpeg源码
- torch. nn. functional. Interpolate function
- Actual combat of flutter - fast implementation of audio and video call application
猜你喜欢
Extensive reading of the paper [film: visual reasoning with a general condition layer]
赋能「新型中国企业」,SAP Process Automation 落地中国
Actual combat of flutter - fast implementation of audio and video call application
Basic use of MySQL
sql查询去重统计的方法总结
Junit单元测试框架详解
Methods of finding various limits
Introduction and installation of crunch, and making password dictionary with crunch
求各种极限的方法
如何正确使用Vertx操作Redis(3.9.4带源码分析)
随机推荐
Wechat applet navigator has a shadow after clicking. Remove the shadow effect of navigator
Nat penetration of gb28181
Case sharing: basic networking configuration of QinQ
物联网平台thingsboard搭建学习记录
uni-app商品分类
[info() method in org.slf4j.logger]
Why must we move from Devops to bizdevops?
After studying 11 kinds of real-time chat software, I found that they all have these functions
What is the essential difference between Bi development and report development?
IPv4 address, subnet mask, gateway
[English grammar] Unit1 articles, nouns, pronouns and numerals
博途V16 获取系统时间转换成字符串
Salesmartly has some tricks for Facebook chat!
Compile ffmpeg source code with msys+vs2019 under win10
nacos启动失败问题解决与总结
原生js打造日程表-支持鼠标滚轮滚动选择月份-可以移植到任何框架中
Why has instagram changed from a content sharing platform to a marketing tool? How do independent sellers use this tool?
Simplified pinduoduo product data
事务隔离级别 gap锁 死锁
Collation of open source protocols of open source frameworks commonly used in Web Development