This commit is contained in:
2026-02-01 19:04:54 +08:00
parent db120ceb14
commit 07744a0c0b
3 changed files with 12 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
"name": "toolbox", "name": "toolbox",
"version": "1.0.0", "version": "1.0.0",
"description": "A Vue-based toolbox application", "description": "A Vue-based toolbox application",
"license": "MIT",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -4,7 +4,7 @@
<h2 class="hero-title"> <h2 class="hero-title">
今天是{{ `${new Date().getFullYear()}${new Date().getMonth() + 1}${new Date().getDate()}` }} 今天是{{ `${new Date().getFullYear()}${new Date().getMonth() + 1}${new Date().getDate()}` }}
</h2> </h2>
<p class="hero-subtitle">凭君莫话封侯事一将功成万骨枯</p> <p id="jinrishici-sentence" class="hero-subtitle"></p>
</div> </div>
<div class="tools-grid"> <div class="tools-grid">
<router-link <router-link
@@ -24,7 +24,7 @@
</template> </template>
<script setup> <script setup>
import { ref } from 'vue' import {onMounted, ref} from 'vue'
const tools = ref([ const tools = ref([
{ {
@@ -63,6 +63,14 @@ const tools = ref([
description: '颜色格式转换' description: '颜色格式转换'
} }
]) ])
onMounted(() => {
let words_script = document.createElement('script');
words_script.charset = "utf-8";
words_script.src= "https://sdk.jinrishici.com/v2/browser/jinrishici.js";
document.body.appendChild(words_script);
})
</script> </script>
<style scoped> <style scoped>