mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 13:37:45 +08:00
更新相关链接
This commit is contained in:
parent
b97028a3b5
commit
99a63317f4
@ -17,11 +17,7 @@
|
||||
}]);
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
if (location.origin.includes('gitee')) {
|
||||
hm.src = "https://hm.baidu.com/hm.js?ba0ee7b31f404b7dc10bfcd8bdc7183d";
|
||||
} else {
|
||||
hm.src = "https://hm.baidu.com/hm.js?d07a64f7a02cd5e9c01e1b36948ac4a5";
|
||||
}
|
||||
hm.src = "https://hm.baidu.com/hm.js?c31a3e8267162de8420bc73e06d62463";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
@ -1,6 +1,4 @@
|
||||
<script setup name="BuyIt">
|
||||
const locationOrigin = ref(location.href)
|
||||
|
||||
const isActived = ref(true)
|
||||
setTimeout(() => {
|
||||
isActived.value = false
|
||||
@ -13,7 +11,7 @@ onMounted(() => {
|
||||
dangerouslyUseHTMLString: true,
|
||||
message: `
|
||||
<p>当前访问的是<b>基础版</b> (Vue3)</p>
|
||||
<p>你可以点<a href="https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/vue3/pro/" target="_blank"><b>这里</b></a>访问专业版 (Vue3)</p>
|
||||
<p>你可以点<a href="https://fantastic-admin.netlify.app/vue3/pro/" target="_blank"><b>这里</b></a>访问专业版 (Vue3)</p>
|
||||
`,
|
||||
position: 'bottom-right',
|
||||
duration: 5000
|
||||
@ -27,25 +25,25 @@ function open(url) {
|
||||
|
||||
<template>
|
||||
<div class="buy-it" :class="{'actived': isActived}">
|
||||
<div class="item" @click="open(`https://hooray.${locationOrigin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/buy.html`)">
|
||||
<div class="item" @click="open(`https://fantastic-admin.netlify.app/buy.html`)">
|
||||
<el-icon>
|
||||
<svg-icon name="fixed-right-buy" />
|
||||
</el-icon>
|
||||
<span class="title">购买<br>专业版</span>
|
||||
</div>
|
||||
<div class="item" @click="open(`https://${locationOrigin.includes('gitee') ? 'gitee' : 'github'}.com/hooray/fantastic-admin/`)">
|
||||
<div class="item" @click="open('https://gitee.com/hooray/fantastic-admin/')">
|
||||
<el-icon>
|
||||
<svg-icon name="fixed-right-code" />
|
||||
</el-icon>
|
||||
<span class="title">下载<br>基础版</span>
|
||||
</div>
|
||||
<div class="item" @click="open(`https://hooray.${locationOrigin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/`)">
|
||||
<div class="item" @click="open(`https://fantastic-admin.netlify.app/`)">
|
||||
<el-icon>
|
||||
<svg-icon name="fixed-right-doc" />
|
||||
</el-icon>
|
||||
<span class="title">开发<br>文档</span>
|
||||
</div>
|
||||
<div class="item" @click="open(`https://hooray.${locationOrigin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/support.html`)">
|
||||
<div class="item" @click="open(`https://fantastic-admin.netlify.app/support.html`)">
|
||||
<el-icon>
|
||||
<svg-icon name="fixed-right-chat" />
|
||||
</el-icon>
|
||||
|
@ -32,7 +32,7 @@ function userCommand(command) {
|
||||
}
|
||||
}
|
||||
function pro() {
|
||||
window.open(`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/vue3/pro`, 'top')
|
||||
window.open('https://fantastic-admin.netlify.app/vue3/pro', 'top')
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
export default [
|
||||
{
|
||||
path: 'https://hooray.github.io/fantastic-template/',
|
||||
path: 'https://fantastic-template.netlify.app',
|
||||
meta: {
|
||||
title: 'Fantastic-template 项目模板'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'https://hooray.github.io/one-step-admin/',
|
||||
path: 'https://one-step-admin.netlify.app',
|
||||
meta: {
|
||||
title: 'One-step-admin 干啥都快人一步的中后台框架'
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ let globalSettings = {
|
||||
// 版权信息配置,格式为:Copyright © [dates] <company>, All Rights Reserved
|
||||
dates: '2020-2022',
|
||||
company: 'Fantastic-admin',
|
||||
website: 'https://hooray.github.io/fantastic-admin'
|
||||
website: 'https://fantastic-admin.netlify.app'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,27 +6,12 @@
|
||||
}
|
||||
</route>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {},
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
computed: {
|
||||
locationOrigin: () => location.origin
|
||||
},
|
||||
created() {},
|
||||
mounted() {},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<page-header title="图片预览" content="ImagePreview" />
|
||||
<page-main>
|
||||
<div>
|
||||
<image-preview :src="`https://hooray.${locationOrigin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/logo.png`" :width="200" />
|
||||
<image-preview :src="`https://fantastic-admin.netlify.app/logo.png`" :width="200" />
|
||||
</div>
|
||||
</page-main>
|
||||
<page-main title="图片加载失败时">
|
||||
|
@ -8,8 +8,6 @@
|
||||
</route>
|
||||
|
||||
<script setup>
|
||||
const locationOrigin = location.origin
|
||||
|
||||
function open(url) {
|
||||
window.open(url, 'top')
|
||||
}
|
||||
@ -30,12 +28,12 @@ const fantasticAdminInfo = ref({
|
||||
imageVisible: false,
|
||||
index: 0,
|
||||
data: [
|
||||
`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/preview1.png`,
|
||||
`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/preview2.png`,
|
||||
`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/preview3.png`,
|
||||
`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/preview4.png`,
|
||||
`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/preview5.png`,
|
||||
`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/preview6.png`
|
||||
'https://fantastic-admin.netlify.app/preview1.png',
|
||||
'https://fantastic-admin.netlify.app/preview2.png',
|
||||
'https://fantastic-admin.netlify.app/preview3.png',
|
||||
'https://fantastic-admin.netlify.app/preview4.png',
|
||||
'https://fantastic-admin.netlify.app/preview5.png',
|
||||
'https://fantastic-admin.netlify.app/preview6.png'
|
||||
]
|
||||
})
|
||||
|
||||
@ -43,12 +41,12 @@ const oneStepAdminInfo = ref({
|
||||
imageVisible: false,
|
||||
index: 0,
|
||||
data: [
|
||||
`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/one-step-admin/preview1.png`,
|
||||
`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/one-step-admin/preview2.png`,
|
||||
`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/one-step-admin/preview3.png`,
|
||||
`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/one-step-admin/preview4.png`,
|
||||
`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/one-step-admin/preview5.png`,
|
||||
`https://hooray.${location.origin.includes('gitee') ? 'gitee' : 'github'}.io/one-step-admin/preview6.png`
|
||||
'https://one-step-admin.netlify.app/preview1.png',
|
||||
'https://one-step-admin.netlify.app/preview2.png',
|
||||
'https://one-step-admin.netlify.app/preview3.png',
|
||||
'https://one-step-admin.netlify.app/preview4.png',
|
||||
'https://one-step-admin.netlify.app/preview5.png',
|
||||
'https://one-step-admin.netlify.app/preview6.png'
|
||||
]
|
||||
})
|
||||
</script>
|
||||
@ -63,8 +61,21 @@ const oneStepAdminInfo = ref({
|
||||
</div>
|
||||
</template>
|
||||
<el-button-group style="margin-right: 10px;">
|
||||
<el-button type="success" size="large" plain @click="open(`https://hooray.${locationOrigin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin`)">开发文档</el-button>
|
||||
<el-button type="primary" size="large" @click="open(`https://${locationOrigin.includes('gitee') ? 'gitee' : 'github'}.com/hooray/fantastic-admin`)">代码仓库</el-button>
|
||||
<el-button type="success" size="large" plain @click="open('https://fantastic-admin.netlify.app')">开发文档</el-button>
|
||||
<el-dropdown>
|
||||
<el-button type="primary" size="large">
|
||||
代码仓库
|
||||
<el-icon class="el-icon--right">
|
||||
<svg-icon name="ep:arrow-down" />
|
||||
</el-icon>
|
||||
</el-button>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item @click="open('https://gitee.com/hooray/fantastic-admin')">Gitee</el-dropdown-item>
|
||||
<el-dropdown-item @click="open('https://github.com/hooray/fantastic-admin')">Github</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</el-button-group>
|
||||
</page-header>
|
||||
<el-row :gutter="20" style="margin: 0 10px;">
|
||||
@ -75,7 +86,7 @@ const oneStepAdminInfo = ref({
|
||||
<img src="https://v3.cn.vuejs.org/logo.png" style="width: 30%;">
|
||||
<h1>Fantastic-template</h1>
|
||||
<h2>一款开箱即用的 Vue 项目模版</h2>
|
||||
<el-button plain @click="open(`https://hooray.${locationOrigin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-template`)">
|
||||
<el-button plain @click="open('https://fantastic-template.netlify.app')">
|
||||
<template #icon>
|
||||
<el-icon>
|
||||
<svg-icon name="ep:link" />
|
||||
@ -95,10 +106,10 @@ const oneStepAdminInfo = ref({
|
||||
<page-main style="margin: 0;">
|
||||
<div class="ecology fa">
|
||||
<div class="main">
|
||||
<img :src="`https://hooray.${locationOrigin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin/logo.png`" style="width: 30%;">
|
||||
<img src="https://fantastic-admin.netlify.app/logo.png" style="width: 30%;">
|
||||
<h1>Fantastic-admin</h1>
|
||||
<h2>一款开箱即用的 Vue 中后台管理系统框架</h2>
|
||||
<el-button plain @click="open(`https://hooray.${locationOrigin.includes('gitee') ? 'gitee' : 'github'}.io/fantastic-admin`)">
|
||||
<el-button plain @click="open('https://fantastic-admin.netlify.app')">
|
||||
<template #icon>
|
||||
<el-icon>
|
||||
<svg-icon name="ep:link" />
|
||||
@ -121,10 +132,10 @@ const oneStepAdminInfo = ref({
|
||||
<page-main style="margin: 0;">
|
||||
<div class="ecology osa">
|
||||
<div class="main">
|
||||
<img :src="`https://hooray.${locationOrigin.includes('gitee') ? 'gitee' : 'github'}.io/one-step-admin/logo.png`" style="width: 30%;">
|
||||
<img src="https://one-step-admin.netlify.app/logo.png" style="width: 30%;">
|
||||
<h1>One-step-admin</h1>
|
||||
<h2>一款干啥都快人一步的 Vue 中后台系统框架</h2>
|
||||
<el-button plain @click="open(`https://hooray.${locationOrigin.includes('gitee') ? 'gitee' : 'github'}.io/one-step-admin`)">
|
||||
<el-button plain @click="open('https://one-step-admin.netlify.app')">
|
||||
<template #icon>
|
||||
<el-icon>
|
||||
<svg-icon name="ep:link" />
|
||||
|
@ -4,9 +4,11 @@ export default function createBanner() {
|
||||
return banner(`
|
||||
/**
|
||||
* 由 Fantastic-admin 提供技术支持
|
||||
* https://hooray.gitee.io/fantastic-admin/
|
||||
* Powered by Fantastic-admin
|
||||
* https://hooray.github.io/fantastic-admin/
|
||||
* https://fantastic-admin.netlify.app
|
||||
* 代码仓库
|
||||
* Gitee https://gitee.com/hooray/fantastic-admin
|
||||
* Github https://github.com/hooray/fantastic-admin
|
||||
*/
|
||||
`)
|
||||
}
|
||||
|
@ -14,8 +14,11 @@ export default function createHtml(env, isBuild) {
|
||||
appMode: VITE_APP_MODE,
|
||||
copyrightScript: `
|
||||
<script>
|
||||
console.info('%c由%cFantastic-admin%c提供技术支持', '${copyright_sub_style}', '${copyright_main_style}', '${copyright_sub_style}', '\\nhttps://hooray.gitee.io/fantastic-admin/');
|
||||
console.info('%cPowered by%cFantastic-admin', '${copyright_sub_style}', '${copyright_main_style}', '\\nhttps://hooray.github.io/fantastic-admin/');
|
||||
if ((navigator.language || navigator.browserLanguage).toLowerCase() === 'zh-cn') {
|
||||
console.info('%c由%cFantastic-admin%c提供技术支持', '${copyright_sub_style}', '${copyright_main_style}', '${copyright_sub_style}', '\\nhttps://gitee.com/hooray/fantastic-admin');
|
||||
} else {
|
||||
console.info('%cPowered by%cFantastic-admin', '${copyright_sub_style}', '${copyright_main_style}', '\\nhttps://github.com/hooray/fantastic-admin');
|
||||
}
|
||||
</script>
|
||||
`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user