Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
rrpgLink_FrontEnd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kesaubeeire
rrpgLink_FrontEnd
Commits
ce238ef4
Commit
ce238ef4
authored
Oct 20, 2023
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments
parent
97a2cc42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/components/card.svelte
src/components/card.svelte
+5
-1
No files found.
src/components/card.svelte
View file @
ce238ef4
...
...
@@ -12,16 +12,20 @@
let image_list = null;
let tags = raw_tags.slice(1, raw_tags.length - 1).split('|');
//去掉开头的"./"
if (folder && folder.startsWith("./")) {
folder = folder.substring(2);
}
//
//
错误标识
let error = false;
//加载json
fetch($_env + '/' + folder + '/rpg_info/info.json')
.then(async (response) => {
if (response.status == 200) {
//加载成功,则更换预览图
image_list = await response.json();
if (image_list.length > 0) {
cover = $_env + '/' + folder + '/rpg_info/' + image_list[0];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment