@@ -20,7 +20,6 @@ import { GiEgyptianBird } from "react-icons/gi";
2020import { Subscriptions , About , Debug } from "./pages" ;
2121
2222import * as backend from "./backend/backend" ;
23- import axios from "axios" ;
2423
2524import { ApiCallBackend , PyBackend , EnhancedMode } from "./backend" ;
2625import { ActionButtonItem , VersionComponent } from "./components" ;
@@ -38,7 +37,7 @@ let current_dashboard = "";
3837let allow_remote_access = false ;
3938let _secret = "" ;
4039
41- const Content : FC < { } > = ( { } ) => {
40+ const Content : FC < { } > = ( { } ) => {
4241 if ( ! usdplReady ) {
4342 return < PanelSection > Init...</ PanelSection > ;
4443 }
@@ -271,6 +270,7 @@ const Content: FC<{}> = ({}) => {
271270 if ( currentDashboard_name ) {
272271 param = `/${ currentDashboard_name } /#` ;
273272 if ( secret ) {
273+ // secret 不为空时,使用完整的参数,但是不同 dashboard 使用不同的 page
274274 switch ( currentDashboard_name ) {
275275 case "metacubexd" :
276276 case "zashboard" :
@@ -281,6 +281,9 @@ const Content: FC<{}> = ({}) => {
281281 break ;
282282 }
283283 param += `/${ page } ?hostname=127.0.0.1&port=9090&secret=${ secret } ` ;
284+ } else if ( currentDashboard_name == "metacubexd" ) {
285+ // 即使没有设置 secret,metacubexd 也会有奇怪的跳转问题,加上host和port
286+ param += `/${ page } ?hostname=127.0.0.1&port=9090` ;
284287 }
285288 }
286289 Navigation . NavigateToExternalWeb (
0 commit comments