mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
fix: menu: prefix (#456)
This commit is contained in:
parent
3e647290fd
commit
45cf9bafcd
1 changed files with 2 additions and 1 deletions
|
|
@ -14,8 +14,9 @@ export const createCloudMenu = async (fm, options, menuData) => {
|
|||
|
||||
async function loadMenu() {
|
||||
if (CloudCmd.config('menu') === 'aleman') {
|
||||
const {prefix} = CloudCmd;
|
||||
const {host, protocol} = globalThis.location;
|
||||
const url = `${protocol}//${host}/node_modules/aleman/menu/menu.js`;
|
||||
const url = `${protocol}//${host}${prefix}/node_modules/aleman/menu/menu.js`;
|
||||
const {createMenu} = await import(/* webpackIgnore: true */url);
|
||||
|
||||
return createMenu;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue