错误码&&修改模板商店
This commit is contained in:
@@ -716,7 +716,7 @@ export class Core {
|
||||
const { default: got } = await import('got');
|
||||
|
||||
// 从指定URL获取模板商店数据
|
||||
const response = await got('http://dex.xcclyc.cn/template/template_stor.json');
|
||||
const response = await got('http://git.xcclyc.cn/xcclyc/DeEarthX-CE-Tems/raw/branch/main/template_stor.json');
|
||||
const data = JSON.parse(response.body);
|
||||
|
||||
// 确保返回的数据结构符合前端预期
|
||||
|
||||
@@ -1,43 +1,51 @@
|
||||
<template>
|
||||
<div class="tw:h-full tw:w-full tw:flex tw:flex-col tw:justify-center tw:items-center">
|
||||
<div class="tw:h-screen tw:w-full tw:flex tw:flex-col tw:justify-center tw:items-center tw:bg-gradient-to-br tw:from-gray-50 tw:to-gray-100">
|
||||
<div class="tw:w-32 tw:h-32 tw:mb-8">
|
||||
<svg class="w-32 h-32 mb-4" viewBox="0 0 120 120">
|
||||
<circle cx="60" cy="60" r="50" fill="#ef4444" />
|
||||
<path d="M40,40 L80,80 M80,40 L40,80" stroke="white" stroke-width="10" stroke-linecap="round" />
|
||||
<svg class="w-32 h-32 mb-4 tw:transition-all tw:duration-300 tw:hover:scale-110" viewBox="0 0 120 120">
|
||||
<circle cx="60" cy="60" r="50" fill="#ef4444" class="tw:opacity-80" />
|
||||
<path d="M40,40 L80,80 M80,40 L40,80" stroke="white" stroke-width="10" stroke-linecap="round" class="tw:opacity-90" />
|
||||
</svg>
|
||||
</div>
|
||||
<p class="tw:text-2xl tw:font-bold tw:text-center tw:mb-6 tw:text-red-500">Error</p>
|
||||
<div class="tw:w-1/2 tw:max-w-md tw:bg-white tw:p-6 tw:rounded-lg tw:shadow-lg">
|
||||
<p class="tw:text-sm tw:text-center tw:text-gray-500 mb-4">
|
||||
{{ errorMessage }}
|
||||
</p>
|
||||
<div v-if="errorCode" class="tw:text-sm tw:text-center tw:text-gray-500 mb-6">
|
||||
错误码:{{ errorCode }}
|
||||
<h1 class="tw:text-3xl tw:font-bold tw:text-center tw:mb-6 tw:text-red-500">错误提示</h1>
|
||||
<div class="tw:w-1/2 tw:max-w-md tw:bg-white tw:p-8 tw:rounded-xl tw:shadow-xl tw:border tw:border-gray-100 tw:transition-all tw:duration-300 tw:hover:shadow-2xl">
|
||||
<div class="tw:text-center tw:mb-6">
|
||||
<p class="tw:text-lg tw:font-medium tw:text-gray-700 mb-2">
|
||||
{{ errorMessage }}
|
||||
</p>
|
||||
<div v-if="errorCode" class="tw:inline-block tw:px-4 tw:py-1 tw:bg-red-50 tw:text-red-600 tw:rounded-full tw:text-sm tw:font-medium mt-2">
|
||||
错误码:{{ errorCode }}
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="suggestions.length > 0" class="tw:mt-6">
|
||||
<p class="tw:text-sm tw:font-medium tw:text-gray-700 mb-2">建议解决方案:</p>
|
||||
<ul class="tw:text-xs tw:text-gray-600 tw:list-disc tw:pl-5">
|
||||
<li v-for="(suggestion, index) in suggestions" :key="index" class="tw:mb-1">
|
||||
{{ suggestion }}
|
||||
<div v-if="suggestions.length > 0" class="tw:mt-6 tw:bg-gray-50 tw:p-4 tw:rounded-lg">
|
||||
<p class="tw:text-sm tw:font-medium tw:text-gray-700 mb-3">建议解决方案:</p>
|
||||
<ul class="tw:text-sm tw:text-gray-600">
|
||||
<li v-for="(suggestion, index) in suggestions" :key="index" class="tw:mb-2 tw:flex tw:items-start">
|
||||
<span class="tw:w-5 tw:h-5 tw:flex tw:items-center tw:justify-center tw:bg-red-100 tw:text-red-500 tw:rounded-full tw:mr-3 tw:mt-0.5">
|
||||
{{ index + 1 }}
|
||||
</span>
|
||||
<span>{{ suggestion }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tw:mt-6 tw:flex tw:justify-center tw:gap-4">
|
||||
<div class="tw:mt-8 tw:flex tw:justify-center tw:gap-4">
|
||||
<button
|
||||
class="tw:px-4 tw:py-2 tw:bg-[#67eac3] tw:text-gray-800 tw:rounded-md tw:hover:bg-[#56d9b0] tw:transition-colors"
|
||||
class="tw:px-6 tw:py-2.5 tw:bg-[#67eac3] tw:text-gray-800 tw:rounded-lg tw:hover:bg-[#56d9b0] tw:transition-all tw:duration-300 tw:font-medium tw:shadow-sm tw:hover:shadow"
|
||||
@click="goBack"
|
||||
>
|
||||
返回首页
|
||||
</button>
|
||||
<button
|
||||
v-if="errorCode"
|
||||
class="tw:px-4 tw:py-2 tw:bg-[#67eac3] tw:text-gray-800 tw:rounded-md tw:hover:bg-[#56d9b0] tw:transition-colors"
|
||||
class="tw:px-6 tw:py-2.5 tw:bg-white tw:text-[#67eac3] tw:rounded-lg tw:hover:bg-gray-50 tw:transition-all tw:duration-300 tw:font-medium tw:shadow-sm tw:hover:shadow tw:border tw:border-[#67eac3]"
|
||||
@click="openErrorDoc"
|
||||
>
|
||||
文档帮助
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tw:mt-8 tw:text-xs tw:text-gray-400">
|
||||
DeEarthX Core © {{ new Date().getFullYear() }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ export default defineConfig({
|
||||
},
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com' }
|
||||
{ icon: 'gitea', link: 'https://git.xcclyc.cn/xcclyc/DeEarthX-CE' }
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
**可能原因**:
|
||||
- 后端服务无法启动
|
||||
- 可能是权限问题
|
||||
- 可能是权限问题(不要安装在C盘哦~)
|
||||
- 可能是文件损坏
|
||||
- 可能是端口被占用
|
||||
|
||||
@@ -254,3 +254,13 @@
|
||||
- 错误码仅用于参考,具体错误原因可能因环境不同而有所差异
|
||||
- 如遇到持续的错误,请检查系统环境和网络连接
|
||||
- 定期更新应用程序以获取最新的错误处理机制
|
||||
|
||||
## 其它
|
||||
|
||||
如果解决不了,请向QQ群反馈,你需要反馈(CE或者主版本群都可以):
|
||||
```
|
||||
你好,我有XXX问题,错误码XXX
|
||||
我的安装路径是XXX
|
||||
环境是WindowsXXX,Java版本XXX
|
||||
程序是XXX版本(CE或者主版本)
|
||||
```
|
||||
@@ -2,6 +2,14 @@
|
||||
|
||||
## 基本问题
|
||||
|
||||
### 错误码
|
||||
|
||||
错误码是DeEarthX-CE用于分辨的码
|
||||
|
||||
错误码信息:[错误码](../api/error-codes.html)
|
||||
|
||||
如果下面解决不了你的问题,你可以看看上面的错误码
|
||||
|
||||
### DeEarthX-CE 是什么?
|
||||
|
||||
DeEarthX-CE 是一个功能强大的 Minecraft 模组管理工具,旨在简化模组的安装、更新和管理流程。它支持多个模组平台,提供智能的模组过滤功能,并允许用户创建和管理模组包模板。
|
||||
@@ -94,4 +102,13 @@ DeEarthX-CE 支持 Windows 10/11、macOS 10.15+ 和 Linux (Ubuntu 20.04+) 操作
|
||||
|
||||
- 查看应用日志获取详细错误信息
|
||||
- 访问 GitHub Issues 页面提交问题
|
||||
- 加入社区 Discord 服务器寻求帮助
|
||||
|
||||
## 其它
|
||||
|
||||
如果解决不了,请向QQ群反馈,你需要反馈(CE或者主版本群都可以):
|
||||
```
|
||||
你好,我有XXX问题,错误码XXX
|
||||
我的安装路径是XXX
|
||||
环境是WindowsXXX,Java版本XXX
|
||||
程序是XXX版本(CE或者主版本)
|
||||
```
|
||||
@@ -77,6 +77,5 @@
|
||||
|
||||
### 权限错误
|
||||
|
||||
- 确保应用有足够的权限访问 Minecraft 目录
|
||||
- 在 Windows 上尝试以管理员身份运行
|
||||
- 在 macOS 上检查应用权限设置
|
||||
Reference in New Issue
Block a user