|
|
@@ -0,0 +1,35 @@
|
|
|
+<script setup lang="ts">
|
|
|
+import { tryOnBeforeMount, useCounter } from '@vueuse/core';
|
|
|
+import debug from '@/loader/debug.ts';
|
|
|
+import { getURLSearchParams } from '@/tools';
|
|
|
+
|
|
|
+let timer: ReturnType<typeof setTimeout>;
|
|
|
+
|
|
|
+const { count, inc, reset } = useCounter();
|
|
|
+const handle = () => {
|
|
|
+ inc();
|
|
|
+ if (count.value >= 10) debug(true);
|
|
|
+ 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" v-if="!!copyright" @click="handle">{{ copyright }}</div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style scoped lang="scss">
|
|
|
+.copyright {
|
|
|
+ padding: 8px 0 4px;
|
|
|
+ font-size: 12px;
|
|
|
+ text-align: center;
|
|
|
+ color: #999;
|
|
|
+ letter-spacing: 2px;
|
|
|
+}
|
|
|
+</style>
|