添加备案号
This commit is contained in:
parent
7fb0a11c2d
commit
4f3161aaf9
@ -11,12 +11,12 @@
|
|||||||
"axios": "^1.6.8",
|
"axios": "^1.6.8",
|
||||||
"bootstrap": "^5.3.3",
|
"bootstrap": "^5.3.3",
|
||||||
"bootstrap-icons": "latest",
|
"bootstrap-icons": "latest",
|
||||||
|
"ismobilejs": "1.1.1",
|
||||||
"kdoffical": "file:",
|
"kdoffical": "file:",
|
||||||
"path": "latest",
|
"path": "latest",
|
||||||
"sass": "latest",
|
"sass": "latest",
|
||||||
"vue": "^3.2.45",
|
"vue": "^3.2.45",
|
||||||
"vue-router": "latest",
|
"vue-router": "latest"
|
||||||
"ismobilejs": "1.1.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
|
|||||||
@ -3,6 +3,7 @@ import { ref } from 'vue';
|
|||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import Footer from './components/Footer.vue';
|
import Footer from './components/Footer.vue';
|
||||||
import Toolbar from './components/Toolbar.vue';
|
import Toolbar from './components/Toolbar.vue';
|
||||||
|
import CopyrightIcp from '@/components/copyright-icp.vue';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const isContentLoaded = ref(false);
|
const isContentLoaded = ref(false);
|
||||||
@ -18,6 +19,7 @@ router.isReady().then(() => {
|
|||||||
<Toolbar></Toolbar>
|
<Toolbar></Toolbar>
|
||||||
<div v-if="$route.path === '/ContactUs'">
|
<div v-if="$route.path === '/ContactUs'">
|
||||||
<router-view/>
|
<router-view/>
|
||||||
|
<CopyrightIcp></CopyrightIcp>
|
||||||
<!-- 如果 ContactUs 页面也需要Footer并同样逻辑加载,则也加上 v-if -->
|
<!-- 如果 ContactUs 页面也需要Footer并同样逻辑加载,则也加上 v-if -->
|
||||||
<!--
|
<!--
|
||||||
<div id="footer" v-if="isContentLoaded">
|
<div id="footer" v-if="isContentLoaded">
|
||||||
@ -31,6 +33,7 @@ router.isReady().then(() => {
|
|||||||
<div id="footer" v-if="isContentLoaded">
|
<div id="footer" v-if="isContentLoaded">
|
||||||
<Footer></Footer>
|
<Footer></Footer>
|
||||||
</div>
|
</div>
|
||||||
|
<CopyrightIcp></CopyrightIcp>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -59,9 +59,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import MobileToolbar from "@/components/Tools/MobileToolbar.vue";
|
import MobileToolbar from "./Tools/MobileToolbar.vue";
|
||||||
export default {
|
export default {
|
||||||
name: "Toolbar",
|
name: "Toolbar",
|
||||||
|
components: {
|
||||||
|
MobileToolbar
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
this.contain_toolbar();
|
this.contain_toolbar();
|
||||||
@ -82,6 +85,7 @@ export default {
|
|||||||
},
|
},
|
||||||
show_weptoolbar:function (){
|
show_weptoolbar:function (){
|
||||||
document.getElementById('mobilebarroot').style.visibility="visible";
|
document.getElementById('mobilebarroot').style.visibility="visible";
|
||||||
|
console.log('mobilebarshow')
|
||||||
},
|
},
|
||||||
isActiveRoute(routename) {
|
isActiveRoute(routename) {
|
||||||
// Example: Apply style if route name starts with 'user-'
|
// Example: Apply style if route name starts with 'user-'
|
||||||
|
|||||||
31
src/components/copyright-icp.vue
Normal file
31
src/components/copyright-icp.vue
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<template>
|
||||||
|
<div class="icp">{{`© ${year} ${author} ` }}<a href="http://beian.miit.gov.cn/" target="_blank">{{ record }}</a></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
let year = new Date().getFullYear(); // 一般都是最新的一年
|
||||||
|
let author = '开动文化'; // 作者名
|
||||||
|
let record = '京ICP备2025124324号-1'; // 备案号
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.icp {
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
margin-top: 0px;
|
||||||
|
width: 100%;
|
||||||
|
white-space: pre;
|
||||||
|
text-align: center;
|
||||||
|
color: white;
|
||||||
|
background-color: black;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
.icp > a {
|
||||||
|
color: gray;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.icp > a:hover {
|
||||||
|
color: aqua;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Loading…
x
Reference in New Issue
Block a user