mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix:image path
This commit is contained in:
parent
b53e224207
commit
e28fbd8472
2 changed files with 6 additions and 4 deletions
|
|
@ -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');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -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');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue