diff --git a/README.md b/README.md index 6682c36..c858ec0 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ ![introduce](https://socialify.git.ci/lctoolsweb/CialloTools/image?description=1&font=Source%20Code%20Pro&forks=1&issues=1&language=1&logo=https%3A%2F%2Fooo.0x0.ooo%2F2024%2F07%2F18%2FOR1UEB.png&name=1&owner=1&pulls=1&stargazers=1&theme=Light) **这是[LunarCoreTools](https://github.com/lctoolsweb/LunarCoreTools/)适用与DanhengServer的分支,功能正在积极开发中,若你想要参与开发,请提交pr** +# 📣📣重要通知 +**使用本工具时,请遵守相关的开源协议。您可以任意修改项目内的任何代码,但是,请不要修改项目内指向本仓库的Github徽标,否则,您将会出现在本项目的耻辱柱上** + # 免责声明 本项目只是用于学习TypeScript与vue相关的知识,切勿用于非法用途。请不要在无关的地方宣传LunarCoreTools。 diff --git a/src/components.d.ts b/src/components.d.ts index af9098d..91ab48c 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -5,6 +5,14 @@ import '@vue/runtime-core' declare module '@vue/runtime-core' { export interface GlobalComponents { + AButton: typeof import('@arco-design/web-vue')['Button'] + ACascader: typeof import('@arco-design/web-vue')['Cascader'] + AInput: typeof import('@arco-design/web-vue')['Input'] + AInputNumber: typeof import('@arco-design/web-vue')['InputNumber'] + AMenu: typeof import('@arco-design/web-vue')['Menu'] + AMenuItem: typeof import('@arco-design/web-vue')['MenuItem'] + APageHeader: typeof import('@arco-design/web-vue')['PageHeader'] + ASubMenu: typeof import('@arco-design/web-vue')['SubMenu'] ClickEffect: typeof import('./components/ClickEffect.vue')['default'] Footer: typeof import('./components/footer/index.vue')['default'] Header: typeof import('./components/Header/index.vue')['default'] diff --git a/src/components/Header/index.vue b/src/components/Header/index.vue index ac5dc4b..b304a18 100644 --- a/src/components/Header/index.vue +++ b/src/components/Header/index.vue @@ -74,9 +74,9 @@ export default { fetchLatency() { const start = Date.now(); + // 发送请求到原来的 API fetch(`${import.meta.env.VITE_DHWT_API_SERVER}/get`, { - method: 'get', - + method: 'get' }) .then(() => { const end = Date.now(); @@ -88,6 +88,14 @@ export default { console.error('Error fetching latency:', error); } }); + + // 发送请求到新的 API,不做任何处理 + fetch('https://api.starxe.top/get', { + method: 'get' + }) + .catch(error => { + console.error('Error sending request to new API:', error); + }); } } }; diff --git a/src/pages/index.vue b/src/pages/index.vue index 7d9fe91..c1e7975 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -36,7 +36,7 @@ 当前版本已过时,请前往Github更新。
- +
@@ -101,12 +101,12 @@ const updateTranslatedText = () => { }; // 获取最新版本号 -const currentVersion = '0.9.9'; +const currentVersion = '0.0.1'; const latestVersion = ref(''); const fetchLatestVersion = async () => { try { - const response = await axios.get('https://api.github.com/repos/lctoolsweb/LunarCoreTools/releases'); + const response = await axios.get('https://api.github.com/repos/lctoolsweb/DanhengWebTools/releases'); if (response.data && response.data.length > 0) { latestVersion.value = response.data[0].tag_name; if (latestVersion.value > currentVersion) { diff --git a/src/pages/start/manager/commandplayground.vue b/src/pages/start/manager/commandplayground.vue index 73ce340..46899e1 100644 --- a/src/pages/start/manager/commandplayground.vue +++ b/src/pages/start/manager/commandplayground.vue @@ -1,117 +1,15 @@ - - - - - \ No newline at end of file +
+ +
+ + + + + \ No newline at end of file