mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 13:28:38 +08:00
更新演示
This commit is contained in:
+12
-4
@@ -81,10 +81,18 @@
|
||||
<script>
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?d07a64f7a02cd5e9c01e1b36948ac4a5";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
if (location.origin.includes('gitee')) {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?ba0ee7b31f404b7dc10bfcd8bdc7183d";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
}
|
||||
if (location.origin.includes('github')) {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?d07a64f7a02cd5e9c01e1b36948ac4a5";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<% } %>
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M188.2 382.3c-70.198 0-127.308 57.11-127.308 127.312 0 70.198 57.11 127.312 127.309 127.312s127.308-57.114 127.308-127.312c0-70.202-57.11-127.312-127.308-127.312zm0 59.502c37.39 0 67.807 30.417 67.807 67.807 0 37.385-30.417 67.803-67.806 67.803s-67.807-30.418-67.807-67.803c0-37.386 30.417-67.807 67.807-67.807zM840.015 382.3c-70.202 0-127.312 57.11-127.312 127.312 0 70.198 57.114 127.312 127.312 127.312s127.308-57.114 127.308-127.312c0-70.202-57.11-127.312-127.308-127.312zm0 59.502c37.39 0 67.807 30.417 67.807 67.807 0 37.385-30.417 67.803-67.807 67.803s-67.806-30.418-67.806-67.803 30.417-67.807 67.806-67.807zM515.464 382.3c-70.198 0-127.308 57.11-127.308 127.312 0 70.198 57.11 127.312 127.308 127.312s127.309-57.114 127.309-127.312c0-70.202-57.114-127.312-127.309-127.312zm0 59.502c37.39 0 67.807 30.417 67.807 67.807 0 37.385-30.417 67.803-67.807 67.803s-67.806-30.418-67.806-67.803c0-37.386 30.417-67.807 67.806-67.807z"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.0 KiB |
@@ -8,15 +8,15 @@
|
||||
<svg-icon name="fixed-right-chat" />
|
||||
<span class="title">加入<br>QQ群</span>
|
||||
</div>
|
||||
<div class="item buy" @click="open('https://hooray.github.io/fantastic-admin/buy.html')">
|
||||
<div class="item buy" @click="open(`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/buy.html`)">
|
||||
<svg-icon name="fixed-right-buy" />
|
||||
<span class="title">购买<br>专业版</span>
|
||||
</div>
|
||||
<div class="item doc" @click="open('https://hooray.github.io/fantastic-admin/')">
|
||||
<div class="item doc" @click="open(`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/`)">
|
||||
<svg-icon name="fixed-right-doc" />
|
||||
<span class="title">开发<br>文档</span>
|
||||
</div>
|
||||
<div class="item code" @click="open('https://github.com/hooray/fantastic-admin/')">
|
||||
<div class="item code" @click="open(`https://${location.origin.includes('gitee') ? 'gitee' : 'github'}.com/hooray/fantastic-admin/`)">
|
||||
<svg-icon name="fixed-right-code" />
|
||||
<span class="title">下载<br>基础版</span>
|
||||
</div>
|
||||
@@ -25,6 +25,13 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
location: {
|
||||
origin: location.origin
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$notify({
|
||||
type: 'success',
|
||||
@@ -32,7 +39,7 @@ export default {
|
||||
dangerouslyUseHTMLString: true,
|
||||
message: `
|
||||
<p>当前访问的是<b>基础版</b></p>
|
||||
<p>你可以点<a href="https://hooray.github.io/fantastic-admin/pro/" target="_blank"><b>这里</b></a>访问专业版</p>
|
||||
<p>你可以点<a href="https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/pro/" target="_blank"><b>这里</b></a>访问专业版</p>
|
||||
`,
|
||||
position: 'bottom-right',
|
||||
duration: 0
|
||||
|
||||
@@ -94,7 +94,11 @@ export default {
|
||||
}
|
||||
},
|
||||
pro() {
|
||||
window.open('https://hooray.github.io/fantastic-admin/pro', 'top')
|
||||
if (location.origin.includes('gitee')) {
|
||||
window.open('https://hooray.gitee.io/fantastic-admin/pro', 'top')
|
||||
} else {
|
||||
window.open('https://hooray.github.io/fantastic-admin/pro', 'top')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-11
@@ -81,7 +81,7 @@ import ExTernalLinkExample from './modules/external.link.example'
|
||||
let asyncRoutes = [
|
||||
{
|
||||
meta: {
|
||||
title: '默认',
|
||||
title: '演示',
|
||||
icon: 'sidebar-default'
|
||||
},
|
||||
children: [
|
||||
@@ -91,7 +91,8 @@ let asyncRoutes = [
|
||||
ComponentBasicExample,
|
||||
ComponentExtendExample,
|
||||
PermissionExample,
|
||||
MockExample
|
||||
MockExample,
|
||||
ExTernalLinkExample
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -102,15 +103,6 @@ let asyncRoutes = [
|
||||
children: [
|
||||
...VideosExample
|
||||
]
|
||||
},
|
||||
{
|
||||
meta: {
|
||||
title: '其它',
|
||||
icon: 'sidebar-other'
|
||||
},
|
||||
children: [
|
||||
ExTernalLinkExample
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@@ -1,9 +1,25 @@
|
||||
import Layout from '@/layout'
|
||||
|
||||
export default {
|
||||
path: 'https://hooray.github.io/fantastic-admin',
|
||||
path: '/link',
|
||||
component: Layout,
|
||||
name: 'externalLinkExample',
|
||||
meta: {
|
||||
title: '官网',
|
||||
title: '外链',
|
||||
icon: 'sidebar-external-link'
|
||||
}
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'https://gitee.com/hooray/fantastic-admin',
|
||||
meta: {
|
||||
title: 'Gitee 仓库'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'https://github.com/hooray/fantastic-admin',
|
||||
meta: {
|
||||
title: 'Github 仓库'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -48,6 +48,9 @@ if (process.env.VUE_APP_TYPE == 'example' || process.env.NODE_ENV == 'developmen
|
||||
globalSettings.enableFullscreen = true
|
||||
globalSettings.enablePageReload = true
|
||||
globalSettings.enableDynamicTitle = true
|
||||
if (process.env.VUE_APP_TYPE == 'example') {
|
||||
globalSettings.copyrightWebsite = '/fantastic-admin'
|
||||
}
|
||||
}
|
||||
|
||||
export default globalSettings
|
||||
|
||||
+6
-3
@@ -8,15 +8,15 @@
|
||||
</div>
|
||||
</template>
|
||||
<el-button-group style="margin-right: 10px;">
|
||||
<el-button type="success" plain @click="open('https://hooray.github.io/fantastic-admin')">开发文档</el-button>
|
||||
<el-button type="primary" plain @click="open('https://github.com/hooray/fantastic-admin')">代码仓库</el-button>
|
||||
<el-button type="success" plain @click="open(`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin`)">开发文档</el-button>
|
||||
<el-button type="primary" plain @click="open(`https://${location.origin.includes('gitee') ? 'gitee' : 'github'}.com/hooray/fantastic-admin`)">代码仓库</el-button>
|
||||
</el-button-group>
|
||||
</page-header>
|
||||
<el-row :gutter="20" style="margin: 0 10px;">
|
||||
<el-col :lg="8">
|
||||
<page-main title="框架信息" style="margin: 0 0 20px 0;">
|
||||
<div class="fa-info">
|
||||
<img src="https://hooray.github.io/fantastic-admin/logo.png" style="width: 150px;">
|
||||
<img :src="`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/logo.png`" style="width: 150px;">
|
||||
<h1>Fantastic-admin</h1>
|
||||
<el-table :data="diff" row-key="prop" size="mini" border stripe>
|
||||
<el-table-column label="基础版" align="center">
|
||||
@@ -103,6 +103,9 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
location: {
|
||||
origin: location.origin
|
||||
},
|
||||
diff: [{
|
||||
basic: [
|
||||
'3 套页面布局',
|
||||
|
||||
Reference in New Issue
Block a user