当前位置:网站首页>新窗口打开页面-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 }
}
边栏推荐
- 面试题 16.16. 部分排序-双指针法
- 703. 数据流中的第 K 大元素
- ffmpeg常用命令(二)
- H264编码profile & level控制
- 精耕渠道共謀發展 福昕攜手偉仕佳傑開展新產品培訓大會
- 703. The k-th element in the data flow
- 【英语语法】Unit1 冠词、名词、代词和数词
- Detailed explanation of JUnit unit test framework
- Wireshark packet analysis TCP, FTP
- AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
猜你喜欢

Witness the times! "The future of Renji collaboration has come" 2022 Hongji ecological partnership conference opens live broadcast reservation

Les canaux de culture intensive s'efforcent de développer Fu Xin et Wei Shi jiajie pour organiser une conférence de formation sur les nouveaux produits

Uni app product classification

Task: denial of service DOS

uni-app微信小程序一键登录获取权限功能

What must be done in graduation season before going to Shanhai

【森城市】GIS数据漫谈(一)

Instagram 为何从内容共享平台变成营销工具?独立站卖家如何利用该工具?

Introduction and installation of crunch, and making password dictionary with crunch

Interview questions for audio and video positions in Dachang -- today's headline
随机推荐
Transaction isolation level gap lock deadlock
【sql优化】with as 和 临时表的区别
Solution and summary of Nacos startup failure
XML syntax, constraints
物联网平台thingsboard搭建学习记录
axure不显示元件库
[SQL optimization] the difference between with as and temporary tables
Ffmpeg avframe to cv:: mat
科技T3国产平台!成功搭载“翼辉国产实时系统SylixOS”
博途V16 获取系统时间转换成字符串
Facebook聊单,SaleSmartly有妙招!
论文阅读【Discriminative Latent Semantic Graph for Video Captioning】
Collation of open source protocols of open source frameworks commonly used in Web Development
Contos 7 搭建sftp之创建用户、用户组以及删除用户
How to solve the problem of splash screen when the main and sub code streams of easygbs are h.265?
Crunch简介、安装,使用Crunch制作密码字典
奔赴山海之前,毕业季一定要做的那些事情
Thesis reading [distinctive late semantic graph for video capturing]
wireshark报文分析tcp,ftp
Ffmpeg audio related commands