|
|
@@ -1,6 +1,7 @@
|
|
|
<script setup lang="ts">
|
|
|
-import { useCounter } from '@vueuse/core';
|
|
|
+import { tryOnBeforeMount, useCounter } from '@vueuse/core';
|
|
|
import debug from '@/loader/debug.ts';
|
|
|
+import { getURLSearchParams } from '@/tools';
|
|
|
|
|
|
let timer: ReturnType<typeof setTimeout>;
|
|
|
|
|
|
@@ -11,10 +12,16 @@ const handle = () => {
|
|
|
clearTimeout(timer);
|
|
|
timer = setTimeout(() => reset(0), 1000);
|
|
|
};
|
|
|
+
|
|
|
+const copyright = ref('杭州六智科技提供技术支持');
|
|
|
+tryOnBeforeMount(() => {
|
|
|
+ const searchParams = getURLSearchParams();
|
|
|
+ if (searchParams.has('copyright')) copyright.value = searchParams.get('copyright')!;
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <div class="copyright" @click="handle">杭州六智科技提供技术支持</div>
|
|
|
+ <div class="copyright" v-if="!!copyright" @click="handle">{{ copyright }}</div>
|
|
|
</template>
|
|
|
|
|
|
<style scoped lang="scss">
|