From 1750908350c4662dc588a931a6602946f04f2a8d Mon Sep 17 00:00:00 2001
From: ningmengchongshui <916415899@qq.com>
Date: Sun, 16 Jun 2024 18:11:37 +0800
Subject: [PATCH] =?UTF-8?q?update:=20=E5=90=8C=E6=AD=A5=E6=96=B0=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
image.tsx | 4 +++-
routes.tsx | 18 +++++++++---------
views/hello.tsx | 36 +++++++++++++++++++++---------------
views/music.tsx | 11 ++++++++---
4 files changed, 41 insertions(+), 28 deletions(-)
diff --git a/image.tsx b/image.tsx
index 3917710..111d129 100644
--- a/image.tsx
+++ b/image.tsx
@@ -34,7 +34,9 @@ export class Image {
join_dir: 'hello',
html_name: `${uid}.html`,
})
- return this.Pup.render(Address)
+ return this.Pup.render(Address,{
+ tab: ''
+ })
}
}
// 初始化 图片生成对象
diff --git a/routes.tsx b/routes.tsx
index 2d961e9..e565307 100644
--- a/routes.tsx
+++ b/routes.tsx
@@ -1,13 +1,13 @@
import React from "react"
-import { type RouterType } from "yunzai/image/types"
import Hello from "./views/hello.tsx"
-import Music from "./views/music.tsx"
-import { createRequire } from 'yunzai/utils'
-const require = createRequire(import.meta.url)
-const movies = [
+import Music from './views/music.tsx'
+import { createRequire } from 'module'
+const require = createRequire(import.meta.url)
+const image: string = require('./resources/example.png')
+const movies = [
{
id: 0,
- image: require('./resources/example.png'),
+ image: image,
title: 'Prognosis Negative',
starRating: '2.66',
rating: 'PG-13',
@@ -17,14 +17,14 @@ const movies = [
cast: 'Simon Pegg, Zach Galifianakis '
}
]
-const Config: RouterType = [
+const Config = [
{
- url: "/",
+ url: "/hello",
element: