Commit 26074a60 by linjinhong

添加生产客户端

parent 4f04a79b
...@@ -102,6 +102,28 @@ const router = createRouter({ ...@@ -102,6 +102,28 @@ const router = createRouter({
component: UserPage, component: UserPage,
}, },
{ {
path: '/system/downloadClient',
meta: {
title: '下载生产客户端',
},
component: () => {},
beforeEnter() {
// 假设你的下载链接是这个
const downloadLink = '/exeFiles/JomallProductionAssistantSetup.exe'
// 创建一个 a 标签来触发下载
const a = document.createElement('a')
a.href = downloadLink
a.download = '生产客户端.exe' // 你可以指定文件名,或者保持为空来自动使用原始文件名
// 不显示 a 标签,直接触发下载
a.style.display = 'none'
document.body.appendChild(a)
a.click()
document.body.removeChild(a)
},
},
{
path: '/system/external-authorisation', path: '/system/external-authorisation',
meta: { meta: {
title: '外部授权', title: '外部授权',
......
...@@ -176,6 +176,11 @@ const menu: MenuItem[] = [ ...@@ -176,6 +176,11 @@ const menu: MenuItem[] = [
label: '用户管理', label: '用户管理',
}, },
{ {
index: '/system/downloadClient',
id: 4,
label: '下载生产客户端',
},
{
index: '/system/external-authorisation', index: '/system/external-authorisation',
id: 5, id: 5,
label: '外部授权', label: '外部授权',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment