增加战略合作导航栏目

This commit is contained in:
hooray
2021-11-24 14:51:41 +08:00
parent 9049807407
commit 42c4f6c346
4 changed files with 23 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1637725213098" class="icon" viewBox="0 0 1190 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6344" xmlns:xlink="http://www.w3.org/1999/xlink" width="232.421875" height="200"><defs><style type="text/css"></style></defs><path d="M610.532836 122.802429a890.75965 890.75965 0 0 1 58.207096-71.582466 140.854899 140.854899 0 0 1 212.380326 0q132.527377 132.014037 263.628809 265.454019a143.250487 143.250487 0 0 1 1.083719 209.243246q-223.759372 227.666462-449.97137 452.880299a140.484153 140.484153 0 0 1-205.592826-0.570378q-223.959004-222.618615-444.895003-448.117641a142.594552 142.594552 0 0 1 1.140756-209.271765q135.179636-139.086726 273.296719-275.178967a142.594552 142.594552 0 0 1 210.697711 2.452626c22.472901 22.415864 41.523534 48.311034 62.114187 72.609146z m-66.905364 55.811507c-28.975213-24.668858-53.415919-45.116916-77.428842-66.049796a57.037821 57.037821 0 0 0-85.300062 1.283351q-133.896285 133.069236-266.052915 267.849607c-30.714867 31.370802-29.716705 57.037821 0.427783 90.148276 13.09018 14.259455 27.264078 27.720381 40.953156 41.552053l384.634545 387.144209c30.971537 31.114131 59.889712 36.190497 87.610093 15.999109 15.599844-11.407564 30.714867-23.414026 46.058041-35.163816l1.226313-17.111347c-25.153679-21.332145-51.334039-41.466496-75.11881-64.310143-28.148165-27.150003-29.631148-49.48031-8.555673-71.297276s44.831727-20.619172 71.297276 6.416755c23.071799 23.642177 43.491338 49.879574 70.213557 80.908149l51.733304-57.57968c-28.946694-26.579625-57.037821-49.822537-82.105943-76.088454s-19.963237-61.971592 12.662396-72.181362a69.614661 69.614661 0 0 1 54.014817 13.033142 770.980226 770.980226 0 0 1 72.666183 69.928369l95.167605-93.741659-234.79619-236.421768c-8.555673 7.985295-20.761767 19.706567-33.196012 31.370801a179.269871 179.269871 0 0 1-221.078594 18.195065c-55.982621-37.502367-60.488609-79.197014-13.118699-126.994708 32.768228-33.053417 66.22091-65.593494 108.172227-106.860358z m-32.19785 164.325963a93.028686 93.028686 0 0 0 101.498802-21.103994c16.540968-17.368016 33.623795-34.222693 50.79218-51.04885 34.907146-34.222693 54.18593-34.222693 89.406784 1.112238q115.130842 115.301955 229.776862 231.003175c8.555673 8.698268 17.738762 16.911714 34.678995 33.024898 19.36434-23.014761 36.190497-44.575057 54.69927-64.538295 35.620119-38.47201 36.019384-62.000111-1.511502-99.9873q-121.832786-123.201693-244.178911-245.833008c-39.669804-39.755361-64.081992-39.755361-104.151062 0.285189q-94.625745 94.540188-188.538517 189.850387c-6.787501 6.730463-12.405726 14.858352-22.472901 27.121484z" p-id="6345"></path></svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

+13 -1
View File
@@ -67,6 +67,7 @@ import PermissionExample from './modules/permission.example'
import MockExample from './modules/mock.example'
import ExternalLinkExample from './modules/external.link.example'
import VideosExample from './modules/videos.example'
import CooperationExample from './modules/cooperation.example'
// 动态路由(异步路由、导航栏路由)
const asyncRoutes = [
@@ -94,6 +95,15 @@ const asyncRoutes = [
children: [
...VideosExample
]
},
{
meta: {
title: '战略合作',
icon: 'sidebar-cooperation'
},
children: [
...CooperationExample
]
}
]
@@ -158,7 +168,9 @@ router.beforeEach(async(to, from, next) => {
accessRoutes.push(lastRoute)
let removeRoutes = []
accessRoutes.forEach(route => {
removeRoutes.push(router.addRoute(route))
if (!/^(https?:|mailto:|tel:)/.test(route.path)) {
removeRoutes.push(router.addRoute(route))
}
})
// 记录的 accessRoutes 路由数据,在登出时会使用到,不使用 router.removeRoute 是考虑配置的路由可能不一定有设置 name ,则通过调用 router.addRoute() 返回的回调进行删除
store.commit('menu/setCurrentRemoveRoutes', removeRoutes)
@@ -0,0 +1,8 @@
export default [
{
path: 'https://www.vform666.com',
meta: {
title: 'VForm 低代码表单'
}
}
]
+1 -1
View File
@@ -252,7 +252,7 @@ const mutations = {
let defaultOpenedPaths = []
routes.map(item => {
item.meta.defaultOpened && defaultOpenedPaths.push(item.path)
item.children.map(child => {
item.children && item.children.map(child => {
child.meta.defaultOpened && defaultOpenedPaths.push(path.resolve(item.path, child.path))
})
})