mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-12 20:23:46 +08:00
首页增加码云连接地址
This commit is contained in:
@@ -59,9 +59,6 @@
|
|||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
|
|
||||||
}
|
}
|
||||||
.icon-book{
|
|
||||||
margin-right: 6px;
|
|
||||||
}
|
|
||||||
.title {
|
.title {
|
||||||
color var(--text-color);
|
color var(--text-color);
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
|
|||||||
@@ -80,6 +80,12 @@
|
|||||||
<span class="username title">{{ loginUser.nickname }}</span>
|
<span class="username title">{{ loginUser.nickname }}</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li v-if="!license.de_copy">
|
||||||
|
<a :href="githubURL" target="_blank" class="flex">
|
||||||
|
<i class="iconfont icon-github"></i>
|
||||||
|
<span class="title">项目源码</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a @click="logout" class="flex">
|
<a @click="logout" class="flex">
|
||||||
<i class="iconfont icon-logout"></i>
|
<i class="iconfont icon-logout"></i>
|
||||||
@@ -130,7 +136,7 @@
|
|||||||
import {UserFilled} from "@element-plus/icons-vue";
|
import {UserFilled} from "@element-plus/icons-vue";
|
||||||
import ThemeChange from "@/components/ThemeChange.vue";
|
import ThemeChange from "@/components/ThemeChange.vue";
|
||||||
import {useRouter} from "vue-router";
|
import {useRouter} from "vue-router";
|
||||||
import {onMounted, ref, watch} from "vue";
|
import {computed, onMounted, ref, watch} from "vue";
|
||||||
import {httpGet} from "@/utils/http";
|
import {httpGet} from "@/utils/http";
|
||||||
import {ElMessage} from "element-plus";
|
import {ElMessage} from "element-plus";
|
||||||
import {checkSession, getLicenseInfo, getSystemInfo} from "@/store/cache";
|
import {checkSession, getLicenseInfo, getSystemInfo} from "@/store/cache";
|
||||||
@@ -153,6 +159,7 @@ const routerViewKey = ref(0);
|
|||||||
const showConfigDialog = ref(false);
|
const showConfigDialog = ref(false);
|
||||||
const license = ref({ de_copy: true });
|
const license = ref({ de_copy: true });
|
||||||
const showLoginDialog = ref(false);
|
const showLoginDialog = ref(false);
|
||||||
|
const githubURL = ref(process.env.VUE_APP_GITHUB_URL);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 从路径名中提取第一个路径段
|
* 从路径名中提取第一个路径段
|
||||||
@@ -179,6 +186,10 @@ const getFirstPathSegment = (url) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const stars = computed(() => {
|
||||||
|
return 1000;
|
||||||
|
})
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => store.showLoginDialog,
|
() => store.showLoginDialog,
|
||||||
(newValue) => {
|
(newValue) => {
|
||||||
|
|||||||
@@ -10,17 +10,17 @@
|
|||||||
<div class="menu-item">
|
<div class="menu-item">
|
||||||
<span v-if="!license.de_copy">
|
<span v-if="!license.de_copy">
|
||||||
<el-tooltip class="box-item" content="部署文档" placement="bottom">
|
<el-tooltip class="box-item" content="部署文档" placement="bottom">
|
||||||
<a :href="docsURL" class="link-button mr-2" target="_blank">
|
<a :href="docsURL" class="link-button mr-3" target="_blank">
|
||||||
<i class="iconfont icon-book"></i>
|
<i class="iconfont icon-book"></i>
|
||||||
</a>
|
</a>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-tooltip class="box-item" content="Github 源码" placement="bottom">
|
<el-tooltip class="box-item" content="Github 源码" placement="bottom">
|
||||||
<a :href="gitURL" class="link-button" target="_blank">
|
<a :href="githubURL" class="link-button mr-3" target="_blank">
|
||||||
<i class="iconfont icon-github"></i>
|
<i class="iconfont icon-github"></i>
|
||||||
</a>
|
</a>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-tooltip class="box-item" content="Gitee 源码" placement="bottom">
|
<el-tooltip class="box-item" content="Gitee 源码" placement="bottom">
|
||||||
<a :href="gitURL" class="link-button" target="_blank">
|
<a :href="giteeURL" class="link-button" target="_blank">
|
||||||
<i class="iconfont icon-gitee"></i>
|
<i class="iconfont icon-gitee"></i>
|
||||||
</a>
|
</a>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
@@ -80,7 +80,8 @@ const license = ref({ de_copy: true });
|
|||||||
|
|
||||||
const isLogin = ref(false);
|
const isLogin = ref(false);
|
||||||
const docsURL = ref(process.env.VUE_APP_DOCS_URL);
|
const docsURL = ref(process.env.VUE_APP_DOCS_URL);
|
||||||
const gitURL = ref(process.env.VUE_APP_GITHUB_URL);
|
const githubURL = ref(process.env.VUE_APP_GITHUB_URL);
|
||||||
|
const giteeURL = ref(process.env.VUE_APP_GITEE_URL);
|
||||||
const navs = ref([]);
|
const navs = ref([]);
|
||||||
|
|
||||||
const iconMap = ref({
|
const iconMap = ref({
|
||||||
|
|||||||
Reference in New Issue
Block a user