Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
style: 1
Nevin7b2f86f35e5a
diff --git a/next.config.mjs b/next.config.mjsindex cc87e406..72942ee2 100644--- a/next.config.mjs+++ b/next.config.mjs@@ -1,5 +1,5 @@-import path from 'path';-import { fileURLToPath } from 'url';+import path from "path";+import { fileURLToPath } from "url";const __dirname = path.dirname(fileURLToPath(import.meta.url));@@ -9,19 +9,19 @@ const nextConfig = {config.module.rules.push({test: /\.svg$/,use: ["@svgr/webpack"],- exclude: path.resolve(__dirname, 'src/assets/svgs/plat'),+ exclude: path.resolve(__dirname, "src/assets/svgs/plat"),});config.module.rules.push({test: /\.svg$/,- include: path.resolve(__dirname, 'src/assets/svgs/plat'),- type: 'asset/resource',+ include: path.resolve(__dirname, "src/assets/svgs/plat"),+ type: "asset/resource",});return config;},sassOptions: {- includePaths: ['./app', '*.scss'],+ includePaths: ["./app", "*.scss"],prependData: `@import "@/app/styles/mixin.scss";`,},reactStrictMode: false,@@ -29,8 +29,8 @@ const nextConfig = {forceSwcTransforms: true,outputFileTracingRoot: undefined,},- output: 'standalone', // Temporarily disabled to avoid symlink issues on Windows- productionBrowserSourceMaps: process.env.NEXT_PUBLIC_EVN === 'dev',+ output: "standalone", // Temporarily disabled to avoid symlink issues on Windows+ productionBrowserSourceMaps: process.env.NEXT_PUBLIC_EVN === "dev",rewrites: async () => {// 存在 NEXT_PUBLIC_PROXY_URL 则代理,本地直连 用// 如:NEXT_PUBLIC_PROXY_URL = http://localhost:8080diff --git a/src/api/material.ts b/src/api/material.tsindex c8e03482..c9bd4642 100644--- a/src/api/material.ts+++ b/src/api/material.ts@@ -26,7 +26,7 @@ export interface NewMaterialTask {coverGroup: string;option?: Record<string, any>;textMax?: number;- language?: "中文" | "英文";+ language?: string;}// 创建素材草稿组