Skip to content

Commit f3648b5

Browse files
committed
fix: 本地模式下无法触发本地版批量操作
1 parent 55c370a commit f3648b5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

MaiChartManager/Front/src/components/AssetDirsManager/ImportLocalButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineComponent({
1515

1616
const importLocal = async () => {
1717
importWait.value = true;
18-
if (location.hostname !== '127.0.0.1') {
18+
if (location.hostname !== 'mcm.invalid') {
1919
// 浏览器模式
2020
let folderHandle: FileSystemDirectoryHandle;
2121
try {

MaiChartManager/Front/src/components/CopyToButton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default defineComponent({
7676

7777
const copy = async (type: DROPDOWN_OPTIONS) => {
7878
wait.value = true;
79-
if (location.hostname !== '127.0.0.1' || type === DROPDOWN_OPTIONS.exportMaidata || type === DROPDOWN_OPTIONS.exportMaidataIgnoreVideo) {
79+
if (location.hostname !== 'mcm.invalid' || type === DROPDOWN_OPTIONS.exportMaidata || type === DROPDOWN_OPTIONS.exportMaidataIgnoreVideo) {
8080
// 浏览器模式,使用 zip.js 获取并解压
8181
let folderHandle: FileSystemDirectoryHandle;
8282
try {

MaiChartManager/Front/src/components/MusicList/BatchActionButton/ChooseAction.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ export default defineComponent({
4040
break;
4141
case OPTIONS.CreateNewOpt:
4242
case OPTIONS.CreateNewOptCompatible:
43-
if (location.hostname === '127.0.0.1') {
43+
if (location.hostname === 'mcm.invalid') {
4444
props.continue(STEP.None);
4545
await api.RequestCopyTo({music: props.selectedMusic, removeEvents: selectedOption.value === OPTIONS.CreateNewOptCompatible, legacyFormat: false});
4646
break;
4747
}
4848
case OPTIONS.CreateNewOptMa2_103:
49-
if (location.hostname === '127.0.0.1') {
49+
if (location.hostname === 'mcm.invalid') {
5050
props.continue(STEP.None);
5151
await api.RequestCopyTo({music: props.selectedMusic, removeEvents: true, legacyFormat: true});
5252
break;

MaiChartManager/Front/src/components/StorePurchaseButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default defineComponent({
77
const dialog = useDialog();
88

99
const onClick = () => {
10-
if (location.hostname !== '127.0.0.1') {
10+
if (location.hostname !== 'mcm.invalid') {
1111
dialog.info({
1212
title: '提示',
1313
content: '你需要在运行服务器端的设备上操作购买',

0 commit comments

Comments
 (0)