我正在研究 Vue 路由器。我有个问题。(SettingProfile)当我访问父组件时,我不想重定向到第一个子组件(settings)。
预期网址:localhost:8080/settings-->localhost:8080/settings/profile
这是我的路由器:
{
name: 'settings',
path: '/settings',
component: () => import('./views/settings.vue'),
children: [
{
path: 'profile',
name: 'SettingProfile',
component: () => import('./components/settings/profile.vue')
},
{
path: 'account',
name: 'account',
component: () => import('./components/settings/account.vue')
}
]
},
Run Code Online (Sandbox Code Playgroud) 我正在处理 SVG 文件。我通过对象标签 html 嵌入了 SVG 文件。
像这样:
<object id="map" type="image/svg+xml" data="the-file-has-same-domain"></object>
Run Code Online (Sandbox Code Playgroud)
当我通过 Javascript 或任何对此的库支持单击时,如何检测哪个区域。
谢谢!!!