mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
Updates
This commit is contained in:
parent
c0e1032c51
commit
af11a11516
10
404.html
10
404.html
@ -5,15 +5,15 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/12.01a276f6.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/2.8c76fef9.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><div class="theme-default-content"><h1>404</h1> <blockquote>How did we get here?</blockquote> <a href="/vue-antd-admin-docs/" class="router-link-active">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><div class="theme-default-content"><h1>404</h1> <blockquote>How did we get here?</blockquote> <a href="/" class="router-link-active">
|
||||
Take me home.
|
||||
</a></div></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/12.01a276f6.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/12.01a276f6.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>全局API | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/15.e2444773.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/15.cf783558.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" aria-current="page" class="active sidebar-link">全局API</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/api.html#多页签" class="sidebar-link">多页签</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/api.html#权限" class="sidebar-link">权限</a></li></ul></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="全局api"><a href="#全局api" class="header-anchor">#</a> 全局API</h1> <p>我们提供了一些全局Api,在日常功能开发中或许会有帮助,它们均被绑定到了页面组件或子组件实例上。<br>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" aria-current="page" class="active sidebar-link">全局API</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/advance/api.html#多页签" class="sidebar-link">多页签</a></li><li class="sidebar-sub-header"><a href="/advance/api.html#权限" class="sidebar-link">权限</a></li></ul></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="全局api"><a href="#全局api" class="header-anchor">#</a> 全局API</h1> <p>我们提供了一些全局Api,在日常功能开发中或许会有帮助,它们均被绑定到了页面组件或子组件实例上。<br>
|
||||
在组件内可以直接通过<code>this.$[apiName]</code>的方式调用。如下:</p> <h2 id="多页签"><a href="#多页签" class="header-anchor">#</a> 多页签</h2> <h3 id="closepage-closeroute-nextroute"><a href="#closepage-closeroute-nextroute" class="header-anchor">#</a> $closePage(closeRoute, nextRoute)</h3> <p>该api用于关闭当前已打开的页签,接收两个参数:</p> <ul><li><strong>closeRoute</strong><br>
|
||||
要关闭的页签对应的 route 对象,可简写为路由的 fullPath 字符串值。</li> <li><strong>nextRoute</strong><br>
|
||||
关闭页签要后跳转的 route 对象,可不传,不传则会自动选择打开页签(临近原则)。</li></ul> <h3 id="refreshpage-route"><a href="#refreshpage-route" class="header-anchor">#</a> $refreshPage(route)</h3> <p>该api用于刷新路由对应的页签,接收一个参数:</p> <ul><li><strong>route</strong><br>
|
||||
@ -39,13 +39,13 @@
|
||||
需要要校验的操作权限</li> <li><strong>type</strong><br>
|
||||
操作权限校验类别,可选 <code>permission</code> 和 <code>role</code>,即通过权限校验还是角色进行校验,可不传(不传的话,会对两种类型都进行匹配,任意一种匹配成功即校验通过)。</li></ul></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/api.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">11/29/2020, 2:45:05 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
←
|
||||
<a href="/vue-antd-admin-docs/advance/interceptors.html" class="prev">
|
||||
<a href="/advance/interceptors.html" class="prev">
|
||||
拦截器配置
|
||||
</a></span> <span class="next"><a href="/vue-antd-admin-docs/other/upgrade.html">
|
||||
</a></span> <span class="next"><a href="/other/upgrade.html">
|
||||
更新日志
|
||||
</a>
|
||||
→
|
||||
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/15.e2444773.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/15.cf783558.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>异步路由和菜单 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/16.f4922829.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/16.8cd2d550.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" aria-current="page" class="active sidebar-link">异步路由和菜单</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/async.html#异步加载路由" class="sidebar-link">异步加载路由</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/async.html#异步加载菜单" class="sidebar-link">异步加载菜单</a></li></ul></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="异步路由和菜单"><a href="#异步路由和菜单" class="header-anchor">#</a> 异步路由和菜单</h1> <p>在现实业务中,存在这样的场景,系统的路由和菜单会根据用户的角色变化而变化,或者路由菜单根据用户的权限动态生成。我们为此准备了一套完整的异步加载方案,
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" aria-current="page" class="active sidebar-link">异步路由和菜单</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/advance/async.html#异步加载路由" class="sidebar-link">异步加载路由</a></li><li class="sidebar-sub-header"><a href="/advance/async.html#异步加载菜单" class="sidebar-link">异步加载菜单</a></li></ul></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="异步路由和菜单"><a href="#异步路由和菜单" class="header-anchor">#</a> 异步路由和菜单</h1> <p>在现实业务中,存在这样的场景,系统的路由和菜单会根据用户的角色变化而变化,或者路由菜单根据用户的权限动态生成。我们为此准备了一套完整的异步加载方案,
|
||||
可以让你很方便的从服务端加载路由和菜单配置,并应用到系统中。</p> <h2 id="异步加载路由"><a href="#异步加载路由" class="header-anchor">#</a> 异步加载路由</h2> <p>动态路由的实现主要有以下四个步骤:</p> <h3 id="开启异步路由设置"><a href="#开启异步路由设置" class="header-anchor">#</a> 开启异步路由设置</h3> <p>在 <code>/config/config.js</code> 文件中设置 <code>asyncRoutes</code> 的值为 true:</p> <div class="language-js line-numbers-mode"><div class="highlight-lines"><br><br><br><br><br><br><div class="highlighted"> </div><br><br><br><br><br><br></div><pre class="language-js"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
|
||||
theme<span class="token operator">:</span> <span class="token punctuation">{</span>
|
||||
color<span class="token operator">:</span> <span class="token string">'#13c2c2'</span><span class="token punctuation">,</span>
|
||||
@ -228,13 +228,13 @@ loadRoutes 方法会合并 /router/async/config.async.js 文件中配置的基
|
||||
<span class="token punctuation">}</span>
|
||||
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div><div class="custom-block tip"><p class="custom-block-title">TIP</p> <p>如果你不想从根路由 <code>‘/’</code> 下获取菜单数据,可以根据自己的需求更改。</p></div></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/async.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">10/22/2020, 11:42:27 AM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
←
|
||||
<a href="/vue-antd-admin-docs/advance/i18n.html" class="prev">
|
||||
<a href="/advance/i18n.html" class="prev">
|
||||
国际化
|
||||
</a></span> <span class="next"><a href="/vue-antd-admin-docs/advance/authority.html">
|
||||
</a></span> <span class="next"><a href="/advance/authority.html">
|
||||
权限管理
|
||||
</a>
|
||||
→
|
||||
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/16.f4922829.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/16.8cd2d550.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>权限管理 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/10.089b316f.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/10.b3af0ac4.js" as="script"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" aria-current="page" class="active sidebar-link">权限管理</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/authority.html#角色和权限" class="sidebar-link">角色和权限</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/authority.html#页面权限" class="sidebar-link">页面权限</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/authority.html#操作权限" class="sidebar-link">操作权限</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/authority.html#异步路由权限" class="sidebar-link">异步路由权限</a></li></ul></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="权限管理"><a href="#权限管理" class="header-anchor">#</a> 权限管理</h1> <p>权限控制是中后台系统中常见的需求之一,你可以利用 Vue Antd Admin 提供的权限控制脚手架,实现一些基本的权限控制功能。</p> <h2 id="角色和权限"><a href="#角色和权限" class="header-anchor">#</a> 角色和权限</h2> <p>通常情况下有两种方式可以控制用户权限,一种是通过用户角色 role 来控制权限,另一种是通过更细致的权限 permission 来控制。
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" aria-current="page" class="active sidebar-link">权限管理</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/advance/authority.html#角色和权限" class="sidebar-link">角色和权限</a></li><li class="sidebar-sub-header"><a href="/advance/authority.html#页面权限" class="sidebar-link">页面权限</a></li><li class="sidebar-sub-header"><a href="/advance/authority.html#操作权限" class="sidebar-link">操作权限</a></li><li class="sidebar-sub-header"><a href="/advance/authority.html#异步路由权限" class="sidebar-link">异步路由权限</a></li></ul></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="权限管理"><a href="#权限管理" class="header-anchor">#</a> 权限管理</h1> <p>权限控制是中后台系统中常见的需求之一,你可以利用 Vue Antd Admin 提供的权限控制脚手架,实现一些基本的权限控制功能。</p> <h2 id="角色和权限"><a href="#角色和权限" class="header-anchor">#</a> 角色和权限</h2> <p>通常情况下有两种方式可以控制用户权限,一种是通过用户角色 role 来控制权限,另一种是通过更细致的权限 permission 来控制。
|
||||
这两种方式 Vue Antd Admin 都支持。<br>
|
||||
我们定义了 role 和 permission 的基本格式,如果你获取的 role 和 permission 数据格式与 Vue Antd Admin 不一致,
|
||||
你需要在获取到 role 和 permission 后将其转换为 Vue Antd Admin 的格式。</p> <h3 id="角色"><a href="#角色" class="header-anchor">#</a> 角色</h3> <p>Vue Antd Admin 的 <code>角色/role</code> 包含 <code>id</code> 和 <code>operation</code> 两个属性。其中 <code>id</code> 为 <code>角色/role</code> 的 id,<code>operation</code> 为 <code>角色/role</code> 具有的操作权限,是一个字符串数组。</p> <div class="language-js line-numbers-mode"><pre class="language-js"><code>role <span class="token operator">=</span> <span class="token punctuation">{</span>
|
||||
@ -104,7 +104,7 @@
|
||||
<span class="token punctuation">}</span>
|
||||
<span class="token punctuation">}</span>
|
||||
</span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>script</span><span class="token punctuation">></span></span>
|
||||
</code></pre><div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br></div></div><p>如果用户没有 <code>delete</code> 权限,调用 deleteRecord 方法,会看到如下提示:</p> <p><img src="/vue-antd-admin-docs/assets/img/permission.a4be38e9.png" alt="无此权限"></p> <h3 id="操作权限校验的类型"><a href="#操作权限校验的类型" class="header-anchor">#</a> 操作权限校验的类型</h3> <p><code>authorize</code> 会根据当前页面匹配到的权限类型(<a href="#%E6%9D%83%E9%99%90">permission</a> / <a href="#%E8%A7%92%E8%89%B2">role</a>),来判断是使用 <code>permission.operation</code> 还是 <code>role.operation</code> 来进行权限校验。
|
||||
</code></pre><div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br></div></div><p>如果用户没有 <code>delete</code> 权限,调用 deleteRecord 方法,会看到如下提示:</p> <p><img src="/assets/img/permission.a4be38e9.png" alt="无此权限"></p> <h3 id="操作权限校验的类型"><a href="#操作权限校验的类型" class="header-anchor">#</a> 操作权限校验的类型</h3> <p><code>authorize</code> 会根据当前页面匹配到的权限类型(<a href="#%E6%9D%83%E9%99%90">permission</a> / <a href="#%E8%A7%92%E8%89%B2">role</a>),来判断是使用 <code>permission.operation</code> 还是 <code>role.operation</code> 来进行权限校验。
|
||||
如果当前页面同时匹配到了 permission 和 role 权限,则默认通过 permission.operation 来进行操作权限校验。</p> <p>当然你也可以指定操作权限校验的类型,如下设置即可:</p> <div class="language-js line-numbers-mode"><div class="highlight-lines"><br><div class="highlighted"> </div><div class="highlighted"> </div><div class="highlighted"> </div><div class="highlighted"> </div><br><br></div><pre class="language-js"><code>authorize<span class="token operator">:</span> <span class="token punctuation">{</span>
|
||||
deleteRecord<span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token comment">//需要 注入权限校验 的方法名:deleteRecord</span>
|
||||
check<span class="token operator">:</span> <span class="token string">'delete'</span><span class="token punctuation">,</span> <span class="token comment">//需要校验的操作权限:check</span>
|
||||
@ -125,7 +125,7 @@
|
||||
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>standard-table</span><span class="token punctuation">></span></span>
|
||||
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>a-card</span><span class="token punctuation">></span></span>
|
||||
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>template</span><span class="token punctuation">></span></span>
|
||||
</code></pre><div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br></div></div><p>假如用户没有 <code>delete</code> 操作权限,则控件会被应用 disable 样式,且 click 事件无效,如下图:</p> <p><img src="/vue-antd-admin-docs/assets/img/auth.42fb947d.png" alt="权限校验指令"></p> <div class="custom-block warning"><p class="custom-block-title">重要!!!</p> <p>v-auth 是我们自定义的一个 <a href="https://cn.vuejs.org/v2/guide/custom-directive.html#ad" target="_blank" rel="noopener noreferrer">Vue指令<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>。因为 <code>Vue指令</code> 的值需要是一个 javascript 表达式,因此你不能直接给 v-auth 赋值为字符串,
|
||||
</code></pre><div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br></div></div><p>假如用户没有 <code>delete</code> 操作权限,则控件会被应用 disable 样式,且 click 事件无效,如下图:</p> <p><img src="/assets/img/auth.42fb947d.png" alt="权限校验指令"></p> <div class="custom-block warning"><p class="custom-block-title">重要!!!</p> <p>v-auth 是我们自定义的一个 <a href="https://cn.vuejs.org/v2/guide/custom-directive.html#ad" target="_blank" rel="noopener noreferrer">Vue指令<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>。因为 <code>Vue指令</code> 的值需要是一个 javascript 表达式,因此你不能直接给 v-auth 赋值为字符串,
|
||||
需要把 v-auth 的字符串值用 <code>``</code> 包裹起来,否则可能会报 undefined 错误。</p></div> <h3 id="权限校验指令的类型"><a href="#权限校验指令的类型" class="header-anchor">#</a> 权限校验指令的类型</h3> <p>你同样也可以指定 v-auth 的权限校验类型,可选 <a href="#%E6%9D%83%E9%99%90">permission</a> 和 <a href="#%E8%A7%92%E8%89%B2">role</a>。它的校验方式和 <a href="#%E6%9D%83%E9%99%90%E6%A0%A1%E9%AA%8C%E6%B3%A8%E5%85%A5">authorize</a> 类似,如未指定则会自动识别。
|
||||
<code>v-auth:role</code> 表示通过 <code>role.operation</code> 进行校验,<code>v-auth:permission</code> 表示通过 <code>permission.operation</code> 进行校验。</p> <p>如下,指定通过 <code>role.operation</code> 校验删除控件的操作权限:</p> <div class="language-vue line-numbers-mode"><div class="highlight-lines"><br><br><div class="highlighted"> </div><br><br><br><br><br></div><pre class="language-vue"><code><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>div</span> <span class="token attr-name">slot</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>action<span class="token punctuation">"</span></span> <span class="token attr-name">slot-scope</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>{text, record}<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
|
||||
...
|
||||
@ -163,13 +163,13 @@
|
||||
<span class="token punctuation">}</span><span class="token punctuation">]</span>
|
||||
</code></pre><div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br></div></div></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/authority.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">9/26/2021, 11:15:12 AM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
←
|
||||
<a href="/vue-antd-admin-docs/advance/async.html" class="prev">
|
||||
<a href="/advance/async.html" class="prev">
|
||||
异步路由和菜单
|
||||
</a></span> <span class="next"><a href="/vue-antd-admin-docs/advance/login.html">
|
||||
</a></span> <span class="next"><a href="/advance/login.html">
|
||||
登录认证
|
||||
</a>
|
||||
→
|
||||
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/10.089b316f.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/10.b3af0ac4.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>图表 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/17.a194e1da.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="图表"><a href="#图表" class="header-anchor">#</a> 图表</h1> <h3 id="作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"><a href="#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页" class="header-anchor">#</a> 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页</h3></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/chart.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">7/10/2020, 12:37:46 PM</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/17.2a1eabce.js" defer></script>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="图表"><a href="#图表" class="header-anchor">#</a> 图表</h1> <h3 id="作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"><a href="#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页" class="header-anchor">#</a> 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页</h3></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/chart.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">7/10/2020, 12:37:46 PM</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/17.a194e1da.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>错误处理 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/18.5be3472b.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="错误处理"><a href="#错误处理" class="header-anchor">#</a> 错误处理</h1> <h3 id="作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"><a href="#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页" class="header-anchor">#</a> 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页</h3></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/error.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">7/10/2020, 12:37:46 PM</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/18.96936b0c.js" defer></script>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="错误处理"><a href="#错误处理" class="header-anchor">#</a> 错误处理</h1> <h3 id="作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"><a href="#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页" class="header-anchor">#</a> 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页</h3></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/error.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">7/10/2020, 12:37:46 PM</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/18.5be3472b.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>路由守卫 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/19.58b681da.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" aria-current="page" class="active sidebar-link">路由守卫</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/guard.html#前置守卫" class="sidebar-link">前置守卫</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/guard.html#后置守卫" class="sidebar-link">后置守卫</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/guard.html#导出守卫配置" class="sidebar-link">导出守卫配置</a></li></ul></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="路由守卫"><a href="#路由守卫" class="header-anchor">#</a> 路由守卫</h1> <p>Vue Antd Admin 使用 vue-router 实现路由导航功能,因此可以为路由配置一些守卫。<br>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" aria-current="page" class="active sidebar-link">路由守卫</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/advance/guard.html#前置守卫" class="sidebar-link">前置守卫</a></li><li class="sidebar-sub-header"><a href="/advance/guard.html#后置守卫" class="sidebar-link">后置守卫</a></li><li class="sidebar-sub-header"><a href="/advance/guard.html#导出守卫配置" class="sidebar-link">导出守卫配置</a></li></ul></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="路由守卫"><a href="#路由守卫" class="header-anchor">#</a> 路由守卫</h1> <p>Vue Antd Admin 使用 vue-router 实现路由导航功能,因此可以为路由配置一些守卫。<br>
|
||||
我们统一把导航守卫配置在 router/guards.js 文件中。</p> <h2 id="前置守卫"><a href="#前置守卫" class="header-anchor">#</a> 前置守卫</h2> <p>Vue Antd Admin 为每个前置导航守卫函数注入 to,from,next,options 四个参数:</p> <ul><li><code>to: Route</code>: 即将要进入的目标<a href="https://router.vuejs.org/zh/api/#%E8%B7%AF%E7%94%B1%E5%AF%B9%E8%B1%A1" target="_blank" rel="noopener noreferrer">路由对象<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li> <li><code>from: Route</code>: 当前导航正要离开的路由对象</li> <li><code>next: Function</code>: 一定要调用该方法来 resolve 这个钩子。执行效果依赖 next 方法的调用参数。详情查看 <a href="https://router.vuejs.org/zh/guide/advanced/navigation-guards.html" target="_blank" rel="noopener noreferrer">Vue Router #导航守卫<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li> <li><code>options: Object</code>: 应用配置,包含: {router, i18n, store, message},可根据需要扩展。<br>
|
||||
如下,是登录拦截导航守卫的定义</li></ul> <div class="language-js line-numbers-mode"><pre class="language-js"><code><span class="token keyword">const</span> <span class="token function-variable function">loginGuard</span> <span class="token operator">=</span> <span class="token punctuation">(</span><span class="token parameter">to<span class="token punctuation">,</span> <span class="token keyword">from</span><span class="token punctuation">,</span> next<span class="token punctuation">,</span> options</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span>
|
||||
<span class="token keyword">const</span> <span class="token punctuation">{</span>message<span class="token punctuation">}</span> <span class="token operator">=</span> options
|
||||
@ -105,13 +105,13 @@
|
||||
<span class="token punctuation">}</span>
|
||||
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br><span class="line-number">36</span><br><span class="line-number">37</span><br><span class="line-number">38</span><br><span class="line-number">39</span><br><span class="line-number">40</span><br><span class="line-number">41</span><br><span class="line-number">42</span><br><span class="line-number">43</span><br><span class="line-number">44</span><br><span class="line-number">45</span><br><span class="line-number">46</span><br><span class="line-number">47</span><br><span class="line-number">48</span><br><span class="line-number">49</span><br><span class="line-number">50</span><br><span class="line-number">51</span><br><span class="line-number">52</span><br><span class="line-number">53</span><br><span class="line-number">54</span><br><span class="line-number">55</span><br></div></div></details></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/guard.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">9/5/2020, 9:07:00 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
←
|
||||
<a href="/vue-antd-admin-docs/advance/login.html" class="prev">
|
||||
<a href="/advance/login.html" class="prev">
|
||||
登录认证
|
||||
</a></span> <span class="next"><a href="/vue-antd-admin-docs/advance/interceptors.html">
|
||||
</a></span> <span class="next"><a href="/advance/interceptors.html">
|
||||
拦截器配置
|
||||
</a>
|
||||
→
|
||||
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/19.b8c9b558.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/19.58b681da.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>国际化 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/20.3d708930.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" aria-current="page" class="active sidebar-link">国际化</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/i18n.html#菜单和路由" class="sidebar-link">菜单和路由</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/i18n.html#添加语言" class="sidebar-link">添加语言</a></li></ul></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="国际化"><a href="#国际化" class="header-anchor">#</a> 国际化</h1> <p>vue-antd-admin 采用 <a href="https://kazupon.github.io/vue-i18n/" target="_blank" rel="noopener noreferrer">vue-i18n<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 插件来实现国际化,该项目已经内置并且加载好了基础配置。可以直接上手使用。</p> <blockquote><p>如果你还没有看快速入门,请先移步查看: <a href="/vue-antd-admin-docs/develop/page.html#i18n国际化配置">页面 -> i18n国际化配置</a></p></blockquote> <h2 id="菜单和路由"><a href="#菜单和路由" class="header-anchor">#</a> 菜单和路由</h2> <h3 id="默认情况"><a href="#默认情况" class="header-anchor">#</a> 默认情况</h3> <p>如果你没有对菜单进行国际化配置,admin 默认会从路由数据中提取数据作为国际化配置。route.name 作为中文语言,route.path 作为英文语言。<br>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" aria-current="page" class="active sidebar-link">国际化</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/advance/i18n.html#菜单和路由" class="sidebar-link">菜单和路由</a></li><li class="sidebar-sub-header"><a href="/advance/i18n.html#添加语言" class="sidebar-link">添加语言</a></li></ul></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="国际化"><a href="#国际化" class="header-anchor">#</a> 国际化</h1> <p>vue-antd-admin 采用 <a href="https://kazupon.github.io/vue-i18n/" target="_blank" rel="noopener noreferrer">vue-i18n<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 插件来实现国际化,该项目已经内置并且加载好了基础配置。可以直接上手使用。</p> <blockquote><p>如果你还没有看快速入门,请先移步查看: <a href="/develop/page.html#i18n国际化配置">页面 -> i18n国际化配置</a></p></blockquote> <h2 id="菜单和路由"><a href="#菜单和路由" class="header-anchor">#</a> 菜单和路由</h2> <h3 id="默认情况"><a href="#默认情况" class="header-anchor">#</a> 默认情况</h3> <p>如果你没有对菜单进行国际化配置,admin 默认会从路由数据中提取数据作为国际化配置。route.name 作为中文语言,route.path 作为英文语言。<br>
|
||||
国际化提取函数定义在 <code>@/utils/i18n.js</code> 文件中,会在路由加载时调用,如下:</p> <div class="language-js line-numbers-mode"><pre class="language-js"><code><span class="token comment">/**
|
||||
* 从路由提取国际化数据
|
||||
* @param i18n
|
||||
@ -119,13 +119,13 @@ or
|
||||
}
|
||||
</code></pre><div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br></div></div><blockquote><p>Notice: 更多用法请移步到 <a href="https://kazupon.github.io/vue-i18n/" target="_blank" rel="noopener noreferrer">vue-i18n<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 。</p></blockquote></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/i18n.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">12/6/2020, 11:14:16 AM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
←
|
||||
<a href="/vue-antd-admin-docs/develop/mock.html" class="prev">
|
||||
<a href="/develop/mock.html" class="prev">
|
||||
Mock
|
||||
</a></span> <span class="next"><a href="/vue-antd-admin-docs/advance/async.html">
|
||||
</a></span> <span class="next"><a href="/advance/async.html">
|
||||
异步路由和菜单
|
||||
</a>
|
||||
→
|
||||
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/20.5e521f7e.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/20.3d708930.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>进阶 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/14.4f2e11ab.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="进阶"><a href="#进阶" class="header-anchor">#</a> 进阶</h1></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/README.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">6/27/2020, 9:49:04 PM</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/14.bc952f61.js" defer></script>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="进阶"><a href="#进阶" class="header-anchor">#</a> 进阶</h1></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/README.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">6/27/2020, 9:49:04 PM</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/14.4f2e11ab.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
File diff suppressed because one or more lines are too long
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>登录认证 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/22.be24120c.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" aria-current="page" class="active sidebar-link">登录认证</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/login.html#token名称" class="sidebar-link">token名称</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/login.html#token-设置" class="sidebar-link">token 设置</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/login.html#token-校验" class="sidebar-link">token 校验</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/advance/login.html#api" class="sidebar-link">Api</a></li></ul></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="登录认证"><a href="#登录认证" class="header-anchor">#</a> 登录认证</h1> <p>Vue Antd Admin 使用 js-cookie.js 管理用户的 token,结合 axios 配置,可以为每个请求头加上 token 信息。</p> <h2 id="token名称"><a href="#token名称" class="header-anchor">#</a> token名称</h2> <p>后端系统通常会从请求 header 中获取用户的 token,因此我们需要配置好 token 名称,好让后端能正确的识别到用户 token。
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" aria-current="page" class="active sidebar-link">登录认证</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/advance/login.html#token名称" class="sidebar-link">token名称</a></li><li class="sidebar-sub-header"><a href="/advance/login.html#token-设置" class="sidebar-link">token 设置</a></li><li class="sidebar-sub-header"><a href="/advance/login.html#token-校验" class="sidebar-link">token 校验</a></li><li class="sidebar-sub-header"><a href="/advance/login.html#api" class="sidebar-link">Api</a></li></ul></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="登录认证"><a href="#登录认证" class="header-anchor">#</a> 登录认证</h1> <p>Vue Antd Admin 使用 js-cookie.js 管理用户的 token,结合 axios 配置,可以为每个请求头加上 token 信息。</p> <h2 id="token名称"><a href="#token名称" class="header-anchor">#</a> token名称</h2> <p>后端系统通常会从请求 header 中获取用户的 token,因此我们需要配置好 token 名称,好让后端能正确的识别到用户 token。
|
||||
Vue Antd Admin 默认token 名称为 <code>Authorization</code>,你可以在 /utils/request.js 中修改它。</p> <div class="language-js line-numbers-mode"><div class="highlight-lines"><br><br><br><br><div class="highlighted"> </div><br><br></div><pre class="language-js"><code><span class="token keyword">import</span> axios <span class="token keyword">from</span> <span class="token string">'axios'</span>
|
||||
<span class="token keyword">import</span> Cookie <span class="token keyword">from</span> <span class="token string">'js-cookie'</span>
|
||||
|
||||
@ -67,13 +67,13 @@ export default {
|
||||
认证类型,默认为 <code>AUTH_TYPE.BEARER</code>。</li></ul> <h3 id="removeauthorization-authtype"><a href="#removeauthorization-authtype" class="header-anchor">#</a> removeAuthorization(authType)</h3> <p>该方法用于移出用户本地存储的 token,接收一个参数:</p> <ul><li><strong>authType</strong><br>
|
||||
认证类型,默认为 <code>AUTH_TYPE.BEARER</code>。</li></ul> <div class="custom-block tip"><p class="custom-block-title">TIP</p> <p>以上 Api 均可在 /utils/request.js 文件中找到。</p></div></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/login.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">9/5/2020, 12:36:37 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
←
|
||||
<a href="/vue-antd-admin-docs/advance/authority.html" class="prev">
|
||||
<a href="/advance/authority.html" class="prev">
|
||||
权限管理
|
||||
</a></span> <span class="next"><a href="/vue-antd-admin-docs/advance/guard.html">
|
||||
</a></span> <span class="next"><a href="/advance/guard.html">
|
||||
路由守卫
|
||||
</a>
|
||||
→
|
||||
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/22.be24120c.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>108个小技巧 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/23.030dc832.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/23.e2e4171a.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="_108个小技巧"><a href="#_108个小技巧" class="header-anchor">#</a> 108个小技巧</h1> <h2 id="自定义菜单icon"><a href="#自定义菜单icon" class="header-anchor">#</a> 自定义菜单icon</h2> <h2 id="隐藏页面标题"><a href="#隐藏页面标题" class="header-anchor">#</a> 隐藏页面标题</h2> <h2 id="关闭页签api"><a href="#关闭页签api" class="header-anchor">#</a> 关闭页签API</h2> <h2 id="权限校验pi"><a href="#权限校验pi" class="header-anchor">#</a> 权限校验PI</h2></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/skill.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">8/28/2020, 11:09:07 AM</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/23.030dc832.js" defer></script>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="_108个小技巧"><a href="#_108个小技巧" class="header-anchor">#</a> 108个小技巧</h1> <h2 id="自定义菜单icon"><a href="#自定义菜单icon" class="header-anchor">#</a> 自定义菜单icon</h2> <h2 id="隐藏页面标题"><a href="#隐藏页面标题" class="header-anchor">#</a> 隐藏页面标题</h2> <h2 id="关闭页签api"><a href="#关闭页签api" class="header-anchor">#</a> 关闭页签API</h2> <h2 id="权限校验pi"><a href="#权限校验pi" class="header-anchor">#</a> 权限校验PI</h2></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/skill.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">8/28/2020, 11:09:07 AM</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/23.e2e4171a.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>更换主题 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/24.d3dad329.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="更换主题"><a href="#更换主题" class="header-anchor">#</a> 更换主题</h1> <h3 id="作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"><a href="#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页" class="header-anchor">#</a> 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页</h3></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/theme.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">7/10/2020, 12:37:46 PM</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/24.d3dad329.js" defer></script>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="更换主题"><a href="#更换主题" class="header-anchor">#</a> 更换主题</h1> <h3 id="作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"><a href="#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页" class="header-anchor">#</a> 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页</h3></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/advance/theme.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">7/10/2020, 12:37:46 PM</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/24.d3dad329.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{375:function(t,e,n){"use strict";n.r(e);var s=n(18),l=Object(s.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}})}),[],!1,null,null,null);e.default=l.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{377:function(t,e,n){"use strict";n.r(e);var s=n(18),l=Object(s.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}})}),[],!1,null,null,null);e.default=l.exports}}]);
|
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{376:function(t,s,e){"use strict";e.r(s);var n=e(18),r=Object(n.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"进阶"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#进阶"}},[this._v("#")]),this._v(" 进阶")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{375:function(t,s,e){"use strict";e.r(s);var n=e(18),r=Object(n.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"进阶"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#进阶"}},[this._v("#")]),this._v(" 进阶")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{377:function(t,e,r){"use strict";r.r(e);var a=r(18),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"全局api"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#全局api"}},[t._v("#")]),t._v(" 全局API")]),t._v(" "),r("p",[t._v("我们提供了一些全局Api,在日常功能开发中或许会有帮助,它们均被绑定到了页面组件或子组件实例上。"),r("br"),t._v("\n在组件内可以直接通过"),r("code",[t._v("this.$[apiName]")]),t._v("的方式调用。如下:")]),t._v(" "),r("h2",{attrs:{id:"多页签"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#多页签"}},[t._v("#")]),t._v(" 多页签")]),t._v(" "),r("h3",{attrs:{id:"closepage-closeroute-nextroute"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#closepage-closeroute-nextroute"}},[t._v("#")]),t._v(" $closePage(closeRoute, nextRoute)")]),t._v(" "),r("p",[t._v("该api用于关闭当前已打开的页签,接收两个参数:")]),t._v(" "),r("ul",[r("li",[r("strong",[t._v("closeRoute")]),r("br"),t._v("\n要关闭的页签对应的 route 对象,可简写为路由的 fullPath 字符串值。")]),t._v(" "),r("li",[r("strong",[t._v("nextRoute")]),r("br"),t._v("\n关闭页签要后跳转的 route 对象,可不传,不传则会自动选择打开页签(临近原则)。")])]),t._v(" "),r("h3",{attrs:{id:"refreshpage-route"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#refreshpage-route"}},[t._v("#")]),t._v(" $refreshPage(route)")]),t._v(" "),r("p",[t._v("该api用于刷新路由对应的页签,接收一个参数:")]),t._v(" "),r("ul",[r("li",[r("strong",[t._v("route")]),r("br"),t._v("\n要刷新的页签对应的 route 对象,可简写为路由的 fullPath 字符串值。")])]),t._v(" "),r("h3",{attrs:{id:"openpage-route-title"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#openpage-route-title"}},[t._v("#")]),t._v(" $openPage(route, title)")]),t._v(" "),r("p",[t._v("该api用于打开一个新页签,接收两个参数:")]),t._v(" "),r("ul",[r("li",[r("strong",[t._v("route")]),r("br"),t._v("\n要打开的页签对应的 route 对象,可简写为路由的 fullPath 字符串值。")]),t._v(" "),r("li",[r("strong",[t._v("title")]),r("br"),t._v("\n设置打开页签的标题,可不传。")])]),t._v(" "),r("h3",{attrs:{id:"setpagetitle-route-title"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#setpagetitle-route-title"}},[t._v("#")]),t._v(" $setPageTitle(route, title)")]),t._v(" "),r("p",[t._v("该api用于设置页签的标题,接收两个参数:")]),t._v(" "),r("ul",[r("li",[r("strong",[t._v("route")]),r("br"),t._v("\n要设置的页签对应的 route 对象,可简写为路由的 fullPath 字符串值。")]),t._v(" "),r("li",[r("strong",[t._v("title")]),r("br"),t._v("\n页签的标题。")])]),t._v(" "),r("h2",{attrs:{id:"权限"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#权限"}},[t._v("#")]),t._v(" 权限")]),t._v(" "),r("h3",{attrs:{id:"auth-check-type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#auth-check-type"}},[t._v("#")]),t._v(" $auth(check, type)")]),t._v(" "),r("p",[t._v("该api可以用于操作权限校验,接收两个参数:")]),t._v(" "),r("ul",[r("li",[r("strong",[t._v("check")]),r("br"),t._v("\n需要要校验的操作权限")]),t._v(" "),r("li",[r("strong",[t._v("type")]),r("br"),t._v("\n操作权限校验类别,可选 "),r("code",[t._v("permission")]),t._v(" 和 "),r("code",[t._v("role")]),t._v(",即通过权限校验还是角色进行校验,可不传(不传的话,会对两种类型都进行匹配,任意一种匹配成功即校验通过)。")])])])}),[],!1,null,null,null);e.default=s.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{376:function(t,e,r){"use strict";r.r(e);var a=r(18),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"全局api"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#全局api"}},[t._v("#")]),t._v(" 全局API")]),t._v(" "),r("p",[t._v("我们提供了一些全局Api,在日常功能开发中或许会有帮助,它们均被绑定到了页面组件或子组件实例上。"),r("br"),t._v("\n在组件内可以直接通过"),r("code",[t._v("this.$[apiName]")]),t._v("的方式调用。如下:")]),t._v(" "),r("h2",{attrs:{id:"多页签"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#多页签"}},[t._v("#")]),t._v(" 多页签")]),t._v(" "),r("h3",{attrs:{id:"closepage-closeroute-nextroute"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#closepage-closeroute-nextroute"}},[t._v("#")]),t._v(" $closePage(closeRoute, nextRoute)")]),t._v(" "),r("p",[t._v("该api用于关闭当前已打开的页签,接收两个参数:")]),t._v(" "),r("ul",[r("li",[r("strong",[t._v("closeRoute")]),r("br"),t._v("\n要关闭的页签对应的 route 对象,可简写为路由的 fullPath 字符串值。")]),t._v(" "),r("li",[r("strong",[t._v("nextRoute")]),r("br"),t._v("\n关闭页签要后跳转的 route 对象,可不传,不传则会自动选择打开页签(临近原则)。")])]),t._v(" "),r("h3",{attrs:{id:"refreshpage-route"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#refreshpage-route"}},[t._v("#")]),t._v(" $refreshPage(route)")]),t._v(" "),r("p",[t._v("该api用于刷新路由对应的页签,接收一个参数:")]),t._v(" "),r("ul",[r("li",[r("strong",[t._v("route")]),r("br"),t._v("\n要刷新的页签对应的 route 对象,可简写为路由的 fullPath 字符串值。")])]),t._v(" "),r("h3",{attrs:{id:"openpage-route-title"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#openpage-route-title"}},[t._v("#")]),t._v(" $openPage(route, title)")]),t._v(" "),r("p",[t._v("该api用于打开一个新页签,接收两个参数:")]),t._v(" "),r("ul",[r("li",[r("strong",[t._v("route")]),r("br"),t._v("\n要打开的页签对应的 route 对象,可简写为路由的 fullPath 字符串值。")]),t._v(" "),r("li",[r("strong",[t._v("title")]),r("br"),t._v("\n设置打开页签的标题,可不传。")])]),t._v(" "),r("h3",{attrs:{id:"setpagetitle-route-title"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#setpagetitle-route-title"}},[t._v("#")]),t._v(" $setPageTitle(route, title)")]),t._v(" "),r("p",[t._v("该api用于设置页签的标题,接收两个参数:")]),t._v(" "),r("ul",[r("li",[r("strong",[t._v("route")]),r("br"),t._v("\n要设置的页签对应的 route 对象,可简写为路由的 fullPath 字符串值。")]),t._v(" "),r("li",[r("strong",[t._v("title")]),r("br"),t._v("\n页签的标题。")])]),t._v(" "),r("h2",{attrs:{id:"权限"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#权限"}},[t._v("#")]),t._v(" 权限")]),t._v(" "),r("h3",{attrs:{id:"auth-check-type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#auth-check-type"}},[t._v("#")]),t._v(" $auth(check, type)")]),t._v(" "),r("p",[t._v("该api可以用于操作权限校验,接收两个参数:")]),t._v(" "),r("ul",[r("li",[r("strong",[t._v("check")]),r("br"),t._v("\n需要要校验的操作权限")]),t._v(" "),r("li",[r("strong",[t._v("type")]),r("br"),t._v("\n操作权限校验类别,可选 "),r("code",[t._v("permission")]),t._v(" 和 "),r("code",[t._v("role")]),t._v(",即通过权限校验还是角色进行校验,可不传(不传的话,会对两种类型都进行匹配,任意一种匹配成功即校验通过)。")])])])}),[],!1,null,null,null);e.default=s.exports}}]);
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{380:function(t,s,a){"use strict";a.r(s);var e=a(18),r=Object(e.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"图表"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#图表"}},[this._v("#")]),this._v(" 图表")]),this._v(" "),s("h3",{attrs:{id:"作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"}},[this._v("#")]),this._v(" 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{378:function(t,s,a){"use strict";a.r(s);var e=a(18),r=Object(e.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"图表"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#图表"}},[this._v("#")]),this._v(" 图表")]),this._v(" "),s("h3",{attrs:{id:"作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"}},[this._v("#")]),this._v(" 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{381:function(t,s,a){"use strict";a.r(s);var e=a(18),r=Object(e.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"错误处理"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#错误处理"}},[this._v("#")]),this._v(" 错误处理")]),this._v(" "),s("h3",{attrs:{id:"作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"}},[this._v("#")]),this._v(" 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{379:function(t,s,a){"use strict";a.r(s);var e=a(18),r=Object(e.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"错误处理"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#错误处理"}},[this._v("#")]),this._v(" 错误处理")]),this._v(" "),s("h3",{attrs:{id:"作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"}},[this._v("#")]),this._v(" 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{386:function(t,a,s){"use strict";s.r(a);var r=s(18),e=Object(r.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"_108个小技巧"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#_108个小技巧"}},[t._v("#")]),t._v(" 108个小技巧")]),t._v(" "),s("h2",{attrs:{id:"自定义菜单icon"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#自定义菜单icon"}},[t._v("#")]),t._v(" 自定义菜单icon")]),t._v(" "),s("h2",{attrs:{id:"隐藏页面标题"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#隐藏页面标题"}},[t._v("#")]),t._v(" 隐藏页面标题")]),t._v(" "),s("h2",{attrs:{id:"关闭页签api"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#关闭页签api"}},[t._v("#")]),t._v(" 关闭页签API")]),t._v(" "),s("h2",{attrs:{id:"权限校验pi"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#权限校验pi"}},[t._v("#")]),t._v(" 权限校验PI")])])}),[],!1,null,null,null);a.default=e.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{385:function(t,a,s){"use strict";s.r(a);var r=s(18),e=Object(r.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"_108个小技巧"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#_108个小技巧"}},[t._v("#")]),t._v(" 108个小技巧")]),t._v(" "),s("h2",{attrs:{id:"自定义菜单icon"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#自定义菜单icon"}},[t._v("#")]),t._v(" 自定义菜单icon")]),t._v(" "),s("h2",{attrs:{id:"隐藏页面标题"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#隐藏页面标题"}},[t._v("#")]),t._v(" 隐藏页面标题")]),t._v(" "),s("h2",{attrs:{id:"关闭页签api"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#关闭页签api"}},[t._v("#")]),t._v(" 关闭页签API")]),t._v(" "),s("h2",{attrs:{id:"权限校验pi"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#权限校验pi"}},[t._v("#")]),t._v(" 权限校验PI")])])}),[],!1,null,null,null);a.default=e.exports}}]);
|
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{388:function(t,s,e){"use strict";e.r(s);var n=e(18),r=Object(n.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"开发"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#开发"}},[this._v("#")]),this._v(" 开发")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{390:function(t,s,e){"use strict";e.r(s);var n=e(18),r=Object(n.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"开发"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#开发"}},[this._v("#")]),this._v(" 开发")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{390:function(t,s,a){"use strict";a.r(s);var e=a(18),r=Object(e.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"mock"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#mock"}},[this._v("#")]),this._v(" Mock")]),this._v(" "),s("h3",{attrs:{id:"作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"}},[this._v("#")]),this._v(" 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{389:function(t,s,a){"use strict";a.r(s);var e=a(18),r=Object(e.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"mock"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#mock"}},[this._v("#")]),this._v(" Mock")]),this._v(" "),s("h3",{attrs:{id:"作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"}},[this._v("#")]),this._v(" 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{395:function(t,s,e){"use strict";e.r(s);var n=e(18),r=Object(n.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"其它"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#其它"}},[this._v("#")]),this._v(" 其它")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{394:function(t,s,e){"use strict";e.r(s);var n=e(18),r=Object(n.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"其它"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#其它"}},[this._v("#")]),this._v(" 其它")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{397:function(t,s,e){"use strict";e.r(s);var n=e(18),r=Object(n.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"更新日志"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#更新日志"}},[this._v("#")]),this._v(" 更新日志")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{395:function(t,s,e){"use strict";e.r(s);var n=e(18),r=Object(n.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"更新日志"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#更新日志"}},[this._v("#")]),this._v(" 更新日志")])])}),[],!1,null,null,null);s.default=r.exports}}]);
|
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{399:function(t,e,n){"use strict";n.r(e);var r=n(18),a=Object(r.a)({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h1",{attrs:{id:"常见问题"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#常见问题"}},[t._v("#")]),t._v(" 常见问题")]),t._v(" "),n("h3",{attrs:{id:"为什么不是-ant-design-pro-vue-?"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#为什么不是-ant-design-pro-vue-?"}},[t._v("#")]),t._v(" 为什么不是 Ant Design Pro Vue ?")]),t._v(" "),n("p",[n("a",{attrs:{href:"https://github.com/vueComponent/ant-design-vue-pro",target:"_blank",rel:"noopener noreferrer"}},[t._v("Ant Design Pro Vue"),n("OutboundLink")],1),t._v(" 是 "),n("a",{attrs:{href:"https://github.com/ant-design/ant-design-pro",target:"_blank",rel:"noopener noreferrer"}},[t._v("Ant Design Pro"),n("OutboundLink")],1),t._v(" 的 Vue 版本,其中项目结构、组件、\n布局和使用方法等基本与 Ant Design Pro 的 react 版本保持一致。如果你比较熟悉 react 版,或者你已经在使用它,这确实是一个不错的选择。")]),t._v(" "),n("p",[n("a",{attrs:{href:"https://github.com/iczer/vue-antd-admin",target:"_blank",rel:"noopener noreferrer"}},[t._v("Vue Antd Admin"),n("OutboundLink")],1),t._v(" 同样实现了 Ant Design Pro 的所有功能。与此同时,我们还根据 Vue 的特性,对 Ant Design Pro 的一些组件和布局作出了相应的修改及优化,同时不影响保持与 Ant Design Pro 的一致。")]),t._v(" "),n("p",[t._v("另外,我们还在添加一些 Ant Design Pro 没有的功能,比如全局动画、多页签模式等。")]),t._v(" "),n("p",[t._v("如果你想使用 Ant Design Pro,但又觉得它缺乏一些你想要的功能,不妨看看 "),n("a",{attrs:{href:"https://github.com/iczer/vue-antd-admin",target:"_blank",rel:"noopener noreferrer"}},[t._v("Vue Antd Admin"),n("OutboundLink")],1),t._v(",我们会认真考虑每个用户的需求。")]),t._v(" "),n("p",[t._v("因此,如果你有一些不错的想法和建议,欢迎随时和我们交流,很可能你的想法就在我们下一个版本中实现。")]),t._v(" "),n("h3",{attrs:{id:"如何使用-vue-antd-admin-?"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#如何使用-vue-antd-admin-?"}},[t._v("#")]),t._v(" 如何使用 Vue Antd Admin ?")]),t._v(" "),n("p",[t._v("请阅读文档 "),n("RouterLink",{attrs:{to:"/start/use.html"}},[t._v("开始使用")]),t._v("。有任何疑问,欢迎在 github 上给我们提交 "),n("a",{attrs:{href:"https://github.com/iczer/vue-antd-admin/issues/new",target:"_blank",rel:"noopener noreferrer"}},[t._v("issue"),n("OutboundLink")],1),t._v("。")],1),t._v(" "),n("h3",{attrs:{id:"是否支持国际化-?"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#是否支持国际化-?"}},[t._v("#")]),t._v(" 是否支持国际化 ?")]),t._v(" "),n("p",[t._v("Vue Antd Admin 引入了 vue-i18n 支持。因此你可以使用 vue-i18n 的特性对项目做国际化修改,详细请查看 "),n("RouterLink",{attrs:{to:"/advance/i18n.html"}},[t._v("国际化")])],1)])}),[],!1,null,null,null);e.default=a.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{397:function(t,e,n){"use strict";n.r(e);var r=n(18),a=Object(r.a)({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h1",{attrs:{id:"常见问题"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#常见问题"}},[t._v("#")]),t._v(" 常见问题")]),t._v(" "),n("h3",{attrs:{id:"为什么不是-ant-design-pro-vue-?"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#为什么不是-ant-design-pro-vue-?"}},[t._v("#")]),t._v(" 为什么不是 Ant Design Pro Vue ?")]),t._v(" "),n("p",[n("a",{attrs:{href:"https://github.com/vueComponent/ant-design-vue-pro",target:"_blank",rel:"noopener noreferrer"}},[t._v("Ant Design Pro Vue"),n("OutboundLink")],1),t._v(" 是 "),n("a",{attrs:{href:"https://github.com/ant-design/ant-design-pro",target:"_blank",rel:"noopener noreferrer"}},[t._v("Ant Design Pro"),n("OutboundLink")],1),t._v(" 的 Vue 版本,其中项目结构、组件、\n布局和使用方法等基本与 Ant Design Pro 的 react 版本保持一致。如果你比较熟悉 react 版,或者你已经在使用它,这确实是一个不错的选择。")]),t._v(" "),n("p",[n("a",{attrs:{href:"https://github.com/iczer/vue-antd-admin",target:"_blank",rel:"noopener noreferrer"}},[t._v("Vue Antd Admin"),n("OutboundLink")],1),t._v(" 同样实现了 Ant Design Pro 的所有功能。与此同时,我们还根据 Vue 的特性,对 Ant Design Pro 的一些组件和布局作出了相应的修改及优化,同时不影响保持与 Ant Design Pro 的一致。")]),t._v(" "),n("p",[t._v("另外,我们还在添加一些 Ant Design Pro 没有的功能,比如全局动画、多页签模式等。")]),t._v(" "),n("p",[t._v("如果你想使用 Ant Design Pro,但又觉得它缺乏一些你想要的功能,不妨看看 "),n("a",{attrs:{href:"https://github.com/iczer/vue-antd-admin",target:"_blank",rel:"noopener noreferrer"}},[t._v("Vue Antd Admin"),n("OutboundLink")],1),t._v(",我们会认真考虑每个用户的需求。")]),t._v(" "),n("p",[t._v("因此,如果你有一些不错的想法和建议,欢迎随时和我们交流,很可能你的想法就在我们下一个版本中实现。")]),t._v(" "),n("h3",{attrs:{id:"如何使用-vue-antd-admin-?"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#如何使用-vue-antd-admin-?"}},[t._v("#")]),t._v(" 如何使用 Vue Antd Admin ?")]),t._v(" "),n("p",[t._v("请阅读文档 "),n("RouterLink",{attrs:{to:"/start/use.html"}},[t._v("开始使用")]),t._v("。有任何疑问,欢迎在 github 上给我们提交 "),n("a",{attrs:{href:"https://github.com/iczer/vue-antd-admin/issues/new",target:"_blank",rel:"noopener noreferrer"}},[t._v("issue"),n("OutboundLink")],1),t._v("。")],1),t._v(" "),n("h3",{attrs:{id:"是否支持国际化-?"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#是否支持国际化-?"}},[t._v("#")]),t._v(" 是否支持国际化 ?")]),t._v(" "),n("p",[t._v("Vue Antd Admin 引入了 vue-i18n 支持。因此你可以使用 vue-i18n 的特性对项目做国际化修改,详细请查看 "),n("RouterLink",{attrs:{to:"/advance/i18n.html"}},[t._v("国际化")])],1)])}),[],!1,null,null,null);e.default=a.exports}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>开发 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/25.936cbc18.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="开发"><a href="#开发" class="header-anchor">#</a> 开发</h1></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/develop/README.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/6/27 22:18:38</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/25.3ea85210.js" defer></script>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="开发"><a href="#开发" class="header-anchor">#</a> 开发</h1></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/develop/README.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/6/27 22:18:38</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/25.936cbc18.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
File diff suppressed because one or more lines are too long
@ -5,37 +5,37 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Mock | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/26.bf7fa383.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" aria-current="page" class="active sidebar-link">Mock</a><ul class="sidebar-sub-headers"></ul></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="mock"><a href="#mock" class="header-anchor">#</a> Mock</h1> <h3 id="作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"><a href="#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页" class="header-anchor">#</a> 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页</h3></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/develop/mock.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/7/10 12:37:46</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" aria-current="page" class="active sidebar-link">Mock</a><ul class="sidebar-sub-headers"></ul></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="mock"><a href="#mock" class="header-anchor">#</a> Mock</h1> <h3 id="作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页"><a href="#作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页" class="header-anchor">#</a> 作者还没来得及编辑该页面,如果你感兴趣,可以点击下方链接,帮助作者完善此页</h3></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/develop/mock.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/7/10 12:37:46</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
←
|
||||
<a href="/vue-antd-admin-docs/develop/service.html" class="prev">
|
||||
<a href="/develop/service.html" class="prev">
|
||||
服务端交互
|
||||
</a></span> <span class="next"><a href="/vue-antd-admin-docs/advance/i18n.html">
|
||||
</a></span> <span class="next"><a href="/advance/i18n.html">
|
||||
国际化
|
||||
</a>
|
||||
→
|
||||
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/26.bf7fa383.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>页面 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/5.2d98be03.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" aria-current="page" class="active sidebar-link">页面</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/develop/page.html#新建页面文件" class="sidebar-link">新建页面文件</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/develop/page.html#配置路由" class="sidebar-link">配置路由</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/develop/page.html#i18n国际化配置" class="sidebar-link">i18n国际化配置</a></li></ul></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="页面"><a href="#页面" class="header-anchor">#</a> 页面</h1> <p>这里的『页面』包含新建页面文件,配置路由、样式文件及i18n国际化等。通常情况下,你仅需简单的配置就可以添加一个新的页面。</p> <h2 id="新建页面文件"><a href="#新建页面文件" class="header-anchor">#</a> 新建页面文件</h2> <p>在 src/pages 下创建新的 .vue 文件。如果页面相关文件过多,您可以创建一个文件夹来放置这些文件。</p> <div class="language-diff line-numbers-mode"><pre class="language-diff"><code><span class="token unchanged"><span class="token prefix unchanged"> </span><span class="token line"> ├── public
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" aria-current="page" class="active sidebar-link">页面</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/develop/page.html#新建页面文件" class="sidebar-link">新建页面文件</a></li><li class="sidebar-sub-header"><a href="/develop/page.html#配置路由" class="sidebar-link">配置路由</a></li><li class="sidebar-sub-header"><a href="/develop/page.html#i18n国际化配置" class="sidebar-link">i18n国际化配置</a></li></ul></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="页面"><a href="#页面" class="header-anchor">#</a> 页面</h1> <p>这里的『页面』包含新建页面文件,配置路由、样式文件及i18n国际化等。通常情况下,你仅需简单的配置就可以添加一个新的页面。</p> <h2 id="新建页面文件"><a href="#新建页面文件" class="header-anchor">#</a> 新建页面文件</h2> <p>在 src/pages 下创建新的 .vue 文件。如果页面相关文件过多,您可以创建一个文件夹来放置这些文件。</p> <div class="language-diff line-numbers-mode"><pre class="language-diff"><code><span class="token unchanged"><span class="token prefix unchanged"> </span><span class="token line"> ├── public
|
||||
</span><span class="token prefix unchanged"> </span><span class="token line"> ├── src
|
||||
</span><span class="token prefix unchanged"> </span><span class="token line"> │ ├── assets # 本地静态资源
|
||||
</span><span class="token prefix unchanged"> </span><span class="token line"> : :
|
||||
@ -106,10 +106,10 @@
|
||||
<span class="token punctuation">]</span>
|
||||
<span class="token punctuation">}</span>
|
||||
</code></pre><div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br></div></div><div class="custom-block tip"><p class="custom-block-title">TIP</p> <p>我们建议使用英文设置路由的 path 属性,用中文设置路由的 name 属性。因为系统将自动提取路由的 path 和 name 属性作为国际化配置。这在后面的章节
|
||||
<a href="/vue-antd-admin-docs/advance/i18n.html">进阶>国际化</a>中将会讲到。
|
||||
<a href="/advance/i18n.html">进阶>国际化</a>中将会讲到。
|
||||
当然,如果你的项目不需要国际化,可以忽略。</p></div> <p>启动服务,你将看到新增页面如下:
|
||||
<img src="/vue-antd-admin-docs/assets/img/new-page.4da2ccce.png" alt="newPage">
|
||||
如果你想把它配置为二级页面或更深层级的页面,只需为它配置一个父级路由,并为父级路由配置一个<a href="/vue-antd-admin-docs/develop/layout.html#admin-的视图">视图组件</a>,
|
||||
<img src="/assets/img/new-page.4da2ccce.png" alt="newPage">
|
||||
如果你想把它配置为二级页面或更深层级的页面,只需为它配置一个父级路由,并为父级路由配置一个<a href="/develop/layout.html#admin-的视图">视图组件</a>,
|
||||
这里我们选择 <a href="https://github.com/iczer/vue-antd-admin/blob/master/src/layouts/PageView.vue" target="_blank" rel="noopener noreferrer">PageView<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>,如下:</p> <div class="language-js line-numbers-mode"><div class="highlight-lines"><br><br><br><br><br><br><br><br><br><div class="highlighted"> </div><div class="highlighted"> </div><div class="highlighted"> </div><div class="highlighted"> </div><div class="highlighted"> </div><div class="highlighted"> </div><div class="highlighted"> </div><div class="highlighted"> </div><div class="highlighted"> </div><div class="highlighted"> </div><div class="highlighted"> </div><div class="highlighted"> </div><br><br><br><br><br><br><br></div><pre class="language-js"><code><span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span>
|
||||
routes<span class="token operator">:</span> <span class="token punctuation">[</span>
|
||||
<span class="token punctuation">{</span>name<span class="token operator">:</span> <span class="token string">'登录页'</span><span class="token operator">...</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
|
||||
@ -137,12 +137,12 @@
|
||||
<span class="token punctuation">}</span>
|
||||
<span class="token punctuation">]</span>
|
||||
<span class="token punctuation">}</span>
|
||||
</code></pre><div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br></div></div><div class="custom-block warning"><p class="custom-block-title">WARNING</p> <p>页面所有父级路由的组件必须配置为<a href="/vue-antd-admin-docs/develop/layout.html#admin-的视图">视图组件</a>,否则页面的内容可能不会显示。<br>
|
||||
</code></pre><div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br></div></div><div class="custom-block warning"><p class="custom-block-title">WARNING</p> <p>页面所有父级路由的组件必须配置为<a href="/develop/layout.html#admin-的视图">视图组件</a>,否则页面的内容可能不会显示。<br>
|
||||
目前有 <a href="https://github.com/iczer/vue-antd-admin/blob/master/src/layouts/PageView.vue" target="_blank" rel="noopener noreferrer">PageView<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>、
|
||||
<a href="https://github.com/iczer/vue-antd-admin/blob/master/src/layouts/tabs/TabsView.vue" target="_blank" rel="noopener noreferrer">TabsView<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 和
|
||||
<a href="https://github.com/iczer/vue-antd-admin/blob/master/src/layouts/BlankView.vue" target="_blank" rel="noopener noreferrer">BlankView<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 可选,
|
||||
你也可以自己创建视图组件。(<a href="/vue-antd-admin-docs/develop/layout.html#admin-的视图">什么是视图组件?</a>)</p></div> <p>页面如下:
|
||||
<img src="/vue-antd-admin-docs/assets/img/new-page-2.930ca3c7.png" alt="newPage2"></p> <h2 id="i18n国际化配置"><a href="#i18n国际化配置" class="header-anchor">#</a> i18n国际化配置</h2> <p>如果你想为页面增加i18n国际化配置,只需在页面同级文件夹下创建 i18n.js 文件,然后在页面文件中引入并使用即可。<br>
|
||||
你也可以自己创建视图组件。(<a href="/develop/layout.html#admin-的视图">什么是视图组件?</a>)</p></div> <p>页面如下:
|
||||
<img src="/assets/img/new-page-2.930ca3c7.png" alt="newPage2"></p> <h2 id="i18n国际化配置"><a href="#i18n国际化配置" class="header-anchor">#</a> i18n国际化配置</h2> <p>如果你想为页面增加i18n国际化配置,只需在页面同级文件夹下创建 i18n.js 文件,然后在页面文件中引入并使用即可。<br>
|
||||
创建 i18n.js 文件:</p> <div class="language-diff line-numbers-mode"><div class="highlight-lines"><br><br><br><br><br><br><br><br><div class="highlighted"> </div><br><br><br><br><br><br><br></div><pre class="language-diff"><code><span class="token unchanged"><span class="token prefix unchanged"> </span><span class="token line"> ├── public
|
||||
</span><span class="token prefix unchanged"> </span><span class="token line"> ├── src
|
||||
</span><span class="token prefix unchanged"> </span><span class="token line"> │ ├── assets # 本地静态资源
|
||||
@ -196,17 +196,17 @@
|
||||
<span class="token atrule"><span class="token rule">@import</span> <span class="token string">"index"</span><span class="token punctuation">;</span></span>
|
||||
</span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>style</span><span class="token punctuation">></span></span>
|
||||
</code></pre><div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br></div></div><p>然后页面右上角语言项选择 <code>English</code>,你会发现,页面语言切换为英文了。如下:
|
||||
<img src="/vue-antd-admin-docs/assets/img/new-page-us.60b25f14.png" alt="newPageUs">
|
||||
<img src="/assets/img/new-page-us.60b25f14.png" alt="newPageUs">
|
||||
一切就是这么的简单!</p> <div class="custom-block tip"><p class="custom-block-title">TIP</p> <p>如果你尝试切换为繁体语言,可能会发现<code>页面标题</code>和<code>面包屑</code>显示为英文。<br>
|
||||
这涉及到路由的国际化配置,在章节 <a href="/vue-antd-admin-docs/advance/i18n.html">进阶 > 国际化</a> 中,我们会对此作详细讲解。</p></div></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/develop/page.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/8/6 14:42:44</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
这涉及到路由的国际化配置,在章节 <a href="/advance/i18n.html">进阶 > 国际化</a> 中,我们会对此作详细讲解。</p></div></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/develop/page.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/8/6 14:42:44</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
←
|
||||
<a href="/vue-antd-admin-docs/develop/router.html" class="prev">
|
||||
<a href="/develop/router.html" class="prev">
|
||||
路由和菜单
|
||||
</a></span> <span class="next"><a href="/vue-antd-admin-docs/develop/theme.html">
|
||||
</a></span> <span class="next"><a href="/develop/theme.html">
|
||||
主题定制
|
||||
</a>
|
||||
→
|
||||
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/5.b598fcf7.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/5.2d98be03.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
File diff suppressed because one or more lines are too long
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>服务端交互 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/27.4a757523.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" aria-current="page" class="active sidebar-link">服务端交互</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/develop/service.html#服务交互流程" class="sidebar-link">服务交互流程</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/develop/service.html#服务模块结构" class="sidebar-link">服务模块结构</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/develop/service.html#request-js" class="sidebar-link">request.js</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/develop/service.html#base-url-配置" class="sidebar-link">Base url 配置</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/develop/service.html#跨域设置" class="sidebar-link">跨域设置</a></li></ul></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="服务端交互"><a href="#服务端交互" class="header-anchor">#</a> 服务端交互</h1> <p>数据服务是一个应用的灵魂,它驱动着应用的各个功能模块的正常运转。Vue Antd Admin 在 service 模块封装了服务端交互,通过 API 的形式可以和任何技术栈的服务端应用一起工作。</p> <h2 id="服务交互流程"><a href="#服务交互流程" class="header-anchor">#</a> 服务交互流程</h2> <p>在 Vue Antd Admin 中,服务端交互流程如下:</p> <ul><li>组件内调用 service 服务 API</li> <li>service 服务 API 封装请求数据,通过 request.js 发送请求</li> <li>组件获取 service 返回的数据,更新视图数据或触发其它行为</li></ul> <p>我们以登录为例,Login.vue 组件内,用户输入账号密码,点击登录,调用 services/user/login api</p> <div class="language-vue line-numbers-mode"><div class="highlight-lines"><br><br><br><br><div class="highlighted"> </div><br><br><br><br><br><br><br><br><br><br><br><div class="highlighted"> </div><br><br><br><br><br><br><br></div><pre class="language-vue"><code><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>template</span><span class="token punctuation">></span></span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" aria-current="page" class="active sidebar-link">服务端交互</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/develop/service.html#服务交互流程" class="sidebar-link">服务交互流程</a></li><li class="sidebar-sub-header"><a href="/develop/service.html#服务模块结构" class="sidebar-link">服务模块结构</a></li><li class="sidebar-sub-header"><a href="/develop/service.html#request-js" class="sidebar-link">request.js</a></li><li class="sidebar-sub-header"><a href="/develop/service.html#base-url-配置" class="sidebar-link">Base url 配置</a></li><li class="sidebar-sub-header"><a href="/develop/service.html#跨域设置" class="sidebar-link">跨域设置</a></li></ul></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="服务端交互"><a href="#服务端交互" class="header-anchor">#</a> 服务端交互</h1> <p>数据服务是一个应用的灵魂,它驱动着应用的各个功能模块的正常运转。Vue Antd Admin 在 service 模块封装了服务端交互,通过 API 的形式可以和任何技术栈的服务端应用一起工作。</p> <h2 id="服务交互流程"><a href="#服务交互流程" class="header-anchor">#</a> 服务交互流程</h2> <p>在 Vue Antd Admin 中,服务端交互流程如下:</p> <ul><li>组件内调用 service 服务 API</li> <li>service 服务 API 封装请求数据,通过 request.js 发送请求</li> <li>组件获取 service 返回的数据,更新视图数据或触发其它行为</li></ul> <p>我们以登录为例,Login.vue 组件内,用户输入账号密码,点击登录,调用 services/user/login api</p> <div class="language-vue line-numbers-mode"><div class="highlight-lines"><br><br><br><br><div class="highlighted"> </div><br><br><br><br><br><br><br><br><br><br><br><div class="highlighted"> </div><br><br><br><br><br><br><br></div><pre class="language-vue"><code><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>template</span><span class="token punctuation">></span></span>
|
||||
...
|
||||
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>template</span><span class="token punctuation">></span></span>
|
||||
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>script</span><span class="token punctuation">></span></span><span class="token script"><span class="token language-javascript">
|
||||
@ -136,13 +136,13 @@ module<span class="token punctuation">.</span>exports <span class="token operato
|
||||
<span class="token punctuation">}</span>
|
||||
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br></div></div><div class="custom-block tip"><p class="custom-block-title">TIP</p> <p>此代理配置仅适用于开发环境,生产环境的跨域代理请在自己的web服务器配置。</p></div></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/develop/service.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/8/8 21:51:40</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
←
|
||||
<a href="/vue-antd-admin-docs/develop/theme.html" class="prev">
|
||||
<a href="/develop/theme.html" class="prev">
|
||||
主题定制
|
||||
</a></span> <span class="next"><a href="/vue-antd-admin-docs/develop/mock.html">
|
||||
</a></span> <span class="next"><a href="/develop/mock.html">
|
||||
Mock
|
||||
</a>
|
||||
→
|
||||
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/27.4a757523.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
File diff suppressed because one or more lines are too long
24
index.html
24
index.html
@ -5,37 +5,37 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/13.9a3bd7bf.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container no-sidebar"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" aria-current="page" class="home-link router-link-exact-active router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" aria-current="page" class="nav-link router-link-exact-active router-link-active">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container no-sidebar"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" aria-current="page" class="home-link router-link-exact-active router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" aria-current="page" class="nav-link router-link-exact-active router-link-active">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" aria-current="page" class="nav-link router-link-exact-active router-link-active">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" aria-current="page" class="nav-link router-link-exact-active router-link-active">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main aria-labelledby="main-title" class="home"><header class="hero"><img src="/vue-antd-admin-docs/logo.png" alt="hero"> <h1 id="main-title">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main aria-labelledby="main-title" class="home"><header class="hero"><img src="/logo.png" alt="hero"> <h1 id="main-title">
|
||||
Vue Antd Admin
|
||||
</h1> <p class="description">
|
||||
开箱即用的中台前端/设计解决方案
|
||||
</p> <p class="action"><a href="/vue-antd-admin-docs/start/use.html" class="nav-link action-button">
|
||||
</p> <p class="action"><a href="/start/use.html" class="nav-link action-button">
|
||||
快速上手 →
|
||||
</a></p></header> <div class="features"><div class="feature"><h2>简洁</h2> <p>以 Markdown 为中心的项目结构,以最少的配置帮助你专注于写作。</p></div><div class="feature"><h2>优雅</h2> <p>享受 Vue + webpack 的开发体验,在 Markdown 中使用 Vue 组件,同时可以使用 Vue 来开发自定义主题。</p></div><div class="feature"><h2>自然</h2> <p>VuePress 为每个页面预渲染生成静态的 HTML,同时在页面被加载的时候,将作为 SPA 运行。</p></div></div> <div class="theme-default-content custom content__default"></div> <div class="footer">
|
||||
MIT Licensed | Copyright © 2018-present iczer
|
||||
</div></main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/13.1a84d693.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/13.9a3bd7bf.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,33 +5,33 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>社区 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/29.baa62900.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/29.baa62900.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" aria-current="page" class="active sidebar-link">社区</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/other/community.html#交流学习" class="sidebar-link">交流学习</a></li></ul></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="社区"><a href="#社区" class="header-anchor">#</a> 社区</h1> <h2 id="交流学习"><a href="#交流学习" class="header-anchor">#</a> 交流学习</h2> <h3 id="qq群:812277510、610090280(已满)"><a href="#qq群:812277510、610090280(已满)" class="header-anchor">#</a> QQ群:812277510、610090280(已满)</h3></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/other/community.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/11/9 09:45:12</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" aria-current="page" class="active sidebar-link">社区</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/other/community.html#交流学习" class="sidebar-link">交流学习</a></li></ul></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="社区"><a href="#社区" class="header-anchor">#</a> 社区</h1> <h2 id="交流学习"><a href="#交流学习" class="header-anchor">#</a> 交流学习</h2> <h3 id="qq群:812277510、610090280(已满)"><a href="#qq群:812277510、610090280(已满)" class="header-anchor">#</a> QQ群:812277510、610090280(已满)</h3></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/other/community.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/11/9 09:45:12</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
←
|
||||
<a href="/vue-antd-admin-docs/other/upgrade.html" class="prev">
|
||||
<a href="/other/upgrade.html" class="prev">
|
||||
更新日志
|
||||
</a></span> <!----></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/29.baa62900.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/29.baa62900.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>其它 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/28.fbeefcef.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="其它"><a href="#其它" class="header-anchor">#</a> 其它</h1></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/other/README.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/6/27 21:49:04</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js" defer></script>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="其它"><a href="#其它" class="header-anchor">#</a> 其它</h1></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/other/README.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/6/27 21:49:04</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/28.fbeefcef.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,37 +5,37 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>更新日志 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/30.6397ca35.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" aria-current="page" class="active sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="更新日志"><a href="#更新日志" class="header-anchor">#</a> 更新日志</h1></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/other/upgrade.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/6/27 21:49:04</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" aria-current="page" class="active sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="更新日志"><a href="#更新日志" class="header-anchor">#</a> 更新日志</h1></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/other/upgrade.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/6/27 21:49:04</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
←
|
||||
<a href="/vue-antd-admin-docs/advance/api.html" class="prev">
|
||||
<a href="/advance/api.html" class="prev">
|
||||
全局API
|
||||
</a></span> <span class="next"><a href="/vue-antd-admin-docs/other/community.html">
|
||||
</a></span> <span class="next"><a href="/other/community.html">
|
||||
社区
|
||||
</a>
|
||||
→
|
||||
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/30.472c91a2.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/30.6397ca35.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,38 +5,38 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>常见问题 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/32.40c5e0e5.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" aria-current="page" class="active sidebar-link">常见问题</a><ul class="sidebar-sub-headers"></ul></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="常见问题"><a href="#常见问题" class="header-anchor">#</a> 常见问题</h1> <h3 id="为什么不是-ant-design-pro-vue-?"><a href="#为什么不是-ant-design-pro-vue-?" class="header-anchor">#</a> 为什么不是 Ant Design Pro Vue ?</h3> <p><a href="https://github.com/vueComponent/ant-design-vue-pro" target="_blank" rel="noopener noreferrer">Ant Design Pro Vue<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 是 <a href="https://github.com/ant-design/ant-design-pro" target="_blank" rel="noopener noreferrer">Ant Design Pro<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 的 Vue 版本,其中项目结构、组件、
|
||||
布局和使用方法等基本与 Ant Design Pro 的 react 版本保持一致。如果你比较熟悉 react 版,或者你已经在使用它,这确实是一个不错的选择。</p> <p><a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer">Vue Antd Admin<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 同样实现了 Ant Design Pro 的所有功能。与此同时,我们还根据 Vue 的特性,对 Ant Design Pro 的一些组件和布局作出了相应的修改及优化,同时不影响保持与 Ant Design Pro 的一致。</p> <p>另外,我们还在添加一些 Ant Design Pro 没有的功能,比如全局动画、多页签模式等。</p> <p>如果你想使用 Ant Design Pro,但又觉得它缺乏一些你想要的功能,不妨看看 <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer">Vue Antd Admin<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>,我们会认真考虑每个用户的需求。</p> <p>因此,如果你有一些不错的想法和建议,欢迎随时和我们交流,很可能你的想法就在我们下一个版本中实现。</p> <h3 id="如何使用-vue-antd-admin-?"><a href="#如何使用-vue-antd-admin-?" class="header-anchor">#</a> 如何使用 Vue Antd Admin ?</h3> <p>请阅读文档 <a href="/vue-antd-admin-docs/start/use.html">开始使用</a>。有任何疑问,欢迎在 github 上给我们提交 <a href="https://github.com/iczer/vue-antd-admin/issues/new" target="_blank" rel="noopener noreferrer">issue<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>。</p> <h3 id="是否支持国际化-?"><a href="#是否支持国际化-?" class="header-anchor">#</a> 是否支持国际化 ?</h3> <p>Vue Antd Admin 引入了 vue-i18n 支持。因此你可以使用 vue-i18n 的特性对项目做国际化修改,详细请查看 <a href="/vue-antd-admin-docs/advance/i18n.html">国际化</a></p></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/start/faq.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/6/29 21:44:46</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" aria-current="page" class="active sidebar-link">常见问题</a><ul class="sidebar-sub-headers"></ul></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="常见问题"><a href="#常见问题" class="header-anchor">#</a> 常见问题</h1> <h3 id="为什么不是-ant-design-pro-vue-?"><a href="#为什么不是-ant-design-pro-vue-?" class="header-anchor">#</a> 为什么不是 Ant Design Pro Vue ?</h3> <p><a href="https://github.com/vueComponent/ant-design-vue-pro" target="_blank" rel="noopener noreferrer">Ant Design Pro Vue<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 是 <a href="https://github.com/ant-design/ant-design-pro" target="_blank" rel="noopener noreferrer">Ant Design Pro<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 的 Vue 版本,其中项目结构、组件、
|
||||
布局和使用方法等基本与 Ant Design Pro 的 react 版本保持一致。如果你比较熟悉 react 版,或者你已经在使用它,这确实是一个不错的选择。</p> <p><a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer">Vue Antd Admin<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 同样实现了 Ant Design Pro 的所有功能。与此同时,我们还根据 Vue 的特性,对 Ant Design Pro 的一些组件和布局作出了相应的修改及优化,同时不影响保持与 Ant Design Pro 的一致。</p> <p>另外,我们还在添加一些 Ant Design Pro 没有的功能,比如全局动画、多页签模式等。</p> <p>如果你想使用 Ant Design Pro,但又觉得它缺乏一些你想要的功能,不妨看看 <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer">Vue Antd Admin<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>,我们会认真考虑每个用户的需求。</p> <p>因此,如果你有一些不错的想法和建议,欢迎随时和我们交流,很可能你的想法就在我们下一个版本中实现。</p> <h3 id="如何使用-vue-antd-admin-?"><a href="#如何使用-vue-antd-admin-?" class="header-anchor">#</a> 如何使用 Vue Antd Admin ?</h3> <p>请阅读文档 <a href="/start/use.html">开始使用</a>。有任何疑问,欢迎在 github 上给我们提交 <a href="https://github.com/iczer/vue-antd-admin/issues/new" target="_blank" rel="noopener noreferrer">issue<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>。</p> <h3 id="是否支持国际化-?"><a href="#是否支持国际化-?" class="header-anchor">#</a> 是否支持国际化 ?</h3> <p>Vue Antd Admin 引入了 vue-i18n 支持。因此你可以使用 vue-i18n 的特性对项目做国际化修改,详细请查看 <a href="/advance/i18n.html">国际化</a></p></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/start/faq.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/6/29 21:44:46</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
||||
←
|
||||
<a href="/vue-antd-admin-docs/start/use.html" class="prev">
|
||||
<a href="/start/use.html" class="prev">
|
||||
使用
|
||||
</a></span> <span class="next"><a href="/vue-antd-admin-docs/develop/layout.html">
|
||||
</a></span> <span class="next"><a href="/develop/layout.html">
|
||||
布局
|
||||
</a>
|
||||
→
|
||||
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/32.ca4080fb.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/32.40c5e0e5.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>开始 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/31.a79ce13e.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/33.09a90ca2.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" class="sidebar-link">使用</a></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="开始"><a href="#开始" class="header-anchor">#</a> 开始</h2></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/start/README.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/6/27 21:49:04</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/31.a79ce13e.js" defer></script>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" class="sidebar-link">使用</a></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="开始"><a href="#开始" class="header-anchor">#</a> 开始</h2></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/start/README.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/6/27 21:49:04</span></div></footer> <!----> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/31.a79ce13e.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,29 +5,29 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>使用 | Vue Antd Admin</title>
|
||||
<meta name="generator" content="VuePress 1.5.2">
|
||||
<link rel="icon" href="/vue-antd-admin-docs/favicon.ico">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="description" content="Vue Antd Admin">
|
||||
<link rel="preload" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css" as="style"><link rel="preload" href="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/vue-antd-admin-docs/assets/js/33.09a90ca2.js" as="script"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/10.089b316f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/12.01a276f6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/13.1a84d693.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/14.bc952f61.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/15.e2444773.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/16.f4922829.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/17.2a1eabce.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/18.96936b0c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/19.b8c9b558.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/20.5e521f7e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/22.fb46e5b6.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/23.030dc832.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/24.d3dad329.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/25.3ea85210.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/26.dbfb0d65.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/27.d2edf1e7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/28.5bf8a8a9.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/29.baa62900.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/3.d23e2c53.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/30.472c91a2.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/32.ca4080fb.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/5.b598fcf7.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/6.a929b4e3.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/vue-antd-admin-docs/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/vue-antd-admin-docs/assets/css/0.styles.8338f4d6.css">
|
||||
<link rel="preload" href="/assets/css/0.styles.566e6543.css" as="style"><link rel="preload" href="/assets/js/app.4044373b.js" as="script"><link rel="preload" href="/assets/js/2.8c76fef9.js" as="script"><link rel="preload" href="/assets/js/33.09a90ca2.js" as="script"><link rel="prefetch" href="/assets/js/10.b3af0ac4.js"><link rel="prefetch" href="/assets/js/11.45b1f56d.js"><link rel="prefetch" href="/assets/js/12.01a276f6.js"><link rel="prefetch" href="/assets/js/13.9a3bd7bf.js"><link rel="prefetch" href="/assets/js/14.4f2e11ab.js"><link rel="prefetch" href="/assets/js/15.cf783558.js"><link rel="prefetch" href="/assets/js/16.8cd2d550.js"><link rel="prefetch" href="/assets/js/17.a194e1da.js"><link rel="prefetch" href="/assets/js/18.5be3472b.js"><link rel="prefetch" href="/assets/js/19.58b681da.js"><link rel="prefetch" href="/assets/js/20.3d708930.js"><link rel="prefetch" href="/assets/js/21.94de0f4c.js"><link rel="prefetch" href="/assets/js/22.be24120c.js"><link rel="prefetch" href="/assets/js/23.e2e4171a.js"><link rel="prefetch" href="/assets/js/24.d3dad329.js"><link rel="prefetch" href="/assets/js/25.936cbc18.js"><link rel="prefetch" href="/assets/js/26.bf7fa383.js"><link rel="prefetch" href="/assets/js/27.4a757523.js"><link rel="prefetch" href="/assets/js/28.fbeefcef.js"><link rel="prefetch" href="/assets/js/29.baa62900.js"><link rel="prefetch" href="/assets/js/3.ed8a83eb.js"><link rel="prefetch" href="/assets/js/30.6397ca35.js"><link rel="prefetch" href="/assets/js/31.a79ce13e.js"><link rel="prefetch" href="/assets/js/32.40c5e0e5.js"><link rel="prefetch" href="/assets/js/4.a8d32d40.js"><link rel="prefetch" href="/assets/js/5.2d98be03.js"><link rel="prefetch" href="/assets/js/6.53f712d2.js"><link rel="prefetch" href="/assets/js/7.1b0a900f.js"><link rel="prefetch" href="/assets/js/8.a6aa3458.js"><link rel="prefetch" href="/assets/js/9.b6ba06c2.js">
|
||||
<link rel="stylesheet" href="/assets/css/0.styles.566e6543.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/vue-antd-admin-docs/" class="home-link router-link-active"><img src="/vue-antd-admin-docs/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="Vue Antd Admin" class="logo"> <span class="site-name can-hide">Vue Antd Admin</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/vue-antd-admin-docs/" class="nav-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
|
||||
指南
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/develop/layout.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/develop/layout.html" class="nav-link">
|
||||
配置
|
||||
</a></div><div class="nav-item"><a href="/vue-antd-admin-docs/advance/theme.html" class="nav-link">
|
||||
</a></div><div class="nav-item"><a href="/advance/theme.html" class="nav-link">
|
||||
主题
|
||||
</a></div> <a href="https://github.com/iczer/vue-antd-admin" target="_blank" rel="noopener noreferrer" class="repo-link">
|
||||
GitHub
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/start/use.html" aria-current="page" class="active sidebar-link">使用</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/start/use.html#准备" class="sidebar-link">准备</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/start/use.html#安装" class="sidebar-link">安装</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/start/use.html#目录结构" class="sidebar-link">目录结构</a></li><li class="sidebar-sub-header"><a href="/vue-antd-admin-docs/start/use.html#本地开发" class="sidebar-link">本地开发</a></li></ul></li><li><a href="/vue-antd-admin-docs/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/vue-antd-admin-docs/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/vue-antd-admin-docs/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/vue-antd-admin-docs/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/vue-antd-admin-docs/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/vue-antd-admin-docs/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/vue-antd-admin-docs/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/vue-antd-admin-docs/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/vue-antd-admin-docs/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/vue-antd-admin-docs/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/vue-antd-admin-docs/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/vue-antd-admin-docs/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/vue-antd-admin-docs/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/vue-antd-admin-docs/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="使用"><a href="#使用" class="header-anchor">#</a> 使用</h1> <h2 id="准备"><a href="#准备" class="header-anchor">#</a> 准备</h2> <p>你的本地环境需要安装 yarn、node 和 git。我们的技术栈基于 ES2015+、Vue、Antd,提前学习这些知识会非常有帮助。</p> <h2 id="安装"><a href="#安装" class="header-anchor">#</a> 安装</h2> <p>克隆本项目到本地</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>$ <span class="token function">git</span> clone https://github.com/iczer/vue-antd-admin.git
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开始</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/start/use.html" aria-current="page" class="active sidebar-link">使用</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/start/use.html#准备" class="sidebar-link">准备</a></li><li class="sidebar-sub-header"><a href="/start/use.html#安装" class="sidebar-link">安装</a></li><li class="sidebar-sub-header"><a href="/start/use.html#目录结构" class="sidebar-link">目录结构</a></li><li class="sidebar-sub-header"><a href="/start/use.html#本地开发" class="sidebar-link">本地开发</a></li></ul></li><li><a href="/start/faq.html" class="sidebar-link">常见问题</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/develop/layout.html" class="sidebar-link">布局</a></li><li><a href="/develop/router.html" class="sidebar-link">路由和菜单</a></li><li><a href="/develop/page.html" class="sidebar-link">页面</a></li><li><a href="/develop/theme.html" class="sidebar-link">主题定制</a></li><li><a href="/develop/service.html" class="sidebar-link">服务端交互</a></li><li><a href="/develop/mock.html" class="sidebar-link">Mock</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/advance/i18n.html" class="sidebar-link">国际化</a></li><li><a href="/advance/async.html" class="sidebar-link">异步路由和菜单</a></li><li><a href="/advance/authority.html" class="sidebar-link">权限管理</a></li><li><a href="/advance/login.html" class="sidebar-link">登录认证</a></li><li><a href="/advance/guard.html" class="sidebar-link">路由守卫</a></li><li><a href="/advance/interceptors.html" class="sidebar-link">拦截器配置</a></li><li><a href="/advance/api.html" class="sidebar-link">全局API</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>其它</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/other/upgrade.html" class="sidebar-link">更新日志</a></li><li><a href="/other/community.html" class="sidebar-link">社区</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="使用"><a href="#使用" class="header-anchor">#</a> 使用</h1> <h2 id="准备"><a href="#准备" class="header-anchor">#</a> 准备</h2> <p>你的本地环境需要安装 yarn、node 和 git。我们的技术栈基于 ES2015+、Vue、Antd,提前学习这些知识会非常有帮助。</p> <h2 id="安装"><a href="#安装" class="header-anchor">#</a> 安装</h2> <p>克隆本项目到本地</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>$ <span class="token function">git</span> clone https://github.com/iczer/vue-antd-admin.git
|
||||
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>安装依赖</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>$ <span class="token function">yarn</span> <span class="token function">install</span>
|
||||
or
|
||||
$ <span class="token function">npm</span> <span class="token function">install</span>
|
||||
@ -59,11 +59,11 @@ $ <span class="token function">npm</span> <span class="token function">install</
|
||||
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br></div></div><h2 id="本地开发"><a href="#本地开发" class="header-anchor">#</a> 本地开发</h2> <p>启动服务</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>$ <span class="token function">yarn</span> serve
|
||||
or
|
||||
$ <span class="token function">npm</span> run serve
|
||||
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p>启动成功后,会看到一个本地预览地址,通常是 http://localhost:8080 。接下来就可以修改代码,并实时预览修改结果啦!</p></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/start/use.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/8/6 15:20:55</span></div></footer> <div class="page-nav"><p class="inner"><!----> <span class="next"><a href="/vue-antd-admin-docs/start/faq.html">
|
||||
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p>启动成功后,会看到一个本地预览地址,通常是 http://localhost:8080 。接下来就可以修改代码,并实时预览修改结果啦!</p></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/iczer/vue-antd-admin/edit/master/docs/start/use.md" target="_blank" rel="noopener noreferrer">在 Github 上帮助我们编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2020/8/6 15:20:55</span></div></footer> <div class="page-nav"><p class="inner"><!----> <span class="next"><a href="/start/faq.html">
|
||||
常见问题
|
||||
</a>
|
||||
→
|
||||
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
|
||||
<script src="/vue-antd-admin-docs/assets/js/app.2bc9664a.js" defer></script><script src="/vue-antd-admin-docs/assets/js/2.8c76fef9.js" defer></script><script src="/vue-antd-admin-docs/assets/js/33.09a90ca2.js" defer></script>
|
||||
<script src="/assets/js/app.4044373b.js" defer></script><script src="/assets/js/2.8c76fef9.js" defer></script><script src="/assets/js/33.09a90ca2.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user