fix:image path

This commit is contained in:
bietiaop 2024-07-09 10:33:22 +08:00
parent b53e224207
commit e28fbd8472
2 changed files with 6 additions and 4 deletions

View file

@ -1,14 +1,14 @@
import path from 'path'; import path from 'path';
import fs from 'fs'; import fs from 'fs';
import { ZZZ_SQUARE_AVATAR, ZZZ_SQUARE_BANGBOO } from './mysapi/api.js'; import { ZZZ_SQUARE_AVATAR, ZZZ_SQUARE_BANGBOO } from './mysapi/api.js';
import { resourcesPath } from './path.js'; import { imageResourcesPath } from './path.js';
const ZZZ_SQUARE_AVATAR_PATH = path.join(resourcesPath, 'square_avatar'); const ZZZ_SQUARE_AVATAR_PATH = path.join(imageResourcesPath, 'square_avatar');
const ZZZ_SQUARE_BANGBOO_PATH = path.join( const ZZZ_SQUARE_BANGBOO_PATH = path.join(
resourcesPath, imageResourcesPath,
'bangboo_square_avatar' 'bangboo_square_avatar'
); );
const ZZZ_GUIDES_PATH = path.join(resourcesPath, 'guides'); const ZZZ_GUIDES_PATH = path.join(imageResourcesPath, 'guides');
/** /**
* *

View file

@ -19,6 +19,8 @@ export const appPath = path.join(pluginPath, 'apps');
// resources // resources
export const resourcesPath = path.join(pluginPath, 'resources'); export const resourcesPath = path.join(pluginPath, 'resources');
export const imageResourcesPath = path.join(resourcesPath, 'images');
// config 路径 // config 路径
export const configPath = path.join(pluginPath, 'config'); export const configPath = path.join(pluginPath, 'config');