修复点击文件管理器按钮时会刷新页面的BUG

This commit is contained in:
fangxiang 2022-06-21 18:52:22 +08:00
parent 2c5bed4304
commit ee88932035
2 changed files with 17 additions and 5 deletions

View File

@ -225,28 +225,40 @@
<div v-else> <div v-else>
<div v-if="status != 'select'"> <div v-if="status != 'select'">
<div v-if="props.row.can_write"> <div v-if="props.row.can_write">
<a href="#" @click="(evt) => renameFile(props.row)"> <a
href="javascript:void(0)"
@click="(evt) => renameFile(props.row)"
>
{{ $t("rename") }} {{ $t("rename") }}
<q-tooltip> <q-tooltip>
{{ $t("click") }}{{ $t("rename") }} {{ $t("click") }}{{ $t("rename") }}
</q-tooltip> </q-tooltip>
</a> </a>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
<a href="#" @click="(evt) => copyFile(props.row)"> <a
href="javascript:void(0)"
@click="(evt) => copyFile(props.row)"
>
{{ $t("_copy2") }} {{ $t("_copy2") }}
<q-tooltip> <q-tooltip>
{{ $t("click") }}{{ $t("_copy2") }} {{ $t("click") }}{{ $t("_copy2") }}
</q-tooltip> </q-tooltip>
</a> </a>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
<a href="#" @click="(evt) => cutFile(props.row)"> <a
href="javascript:void(0)"
@click="(evt) => cutFile(props.row)"
>
{{ $t("_cut2") }} {{ $t("_cut2") }}
<q-tooltip> <q-tooltip>
{{ $t("click") }}{{ $t("_cut2") }} {{ $t("click") }}{{ $t("_cut2") }}
</q-tooltip> </q-tooltip>
</a> </a>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
<a href="#" @click="(evt) => deleteFile(props.row)"> <a
href="javascript:void(0)"
@click="(evt) => deleteFile(props.row)"
>
{{ $t("delete") }} {{ $t("delete") }}
<q-tooltip> <q-tooltip>
{{ $t("click") }}{{ $t("delete") }} {{ $t("click") }}{{ $t("delete") }}
@ -834,7 +846,6 @@ export default defineComponent({
} else { } else {
uploader_accept.value = filter.replace(/;/g, ","); uploader_accept.value = filter.replace(/;/g, ",");
} }
console.log(filter);
} }
refresh_usb_devices(); refresh_usb_devices();

View File

@ -584,4 +584,5 @@ export default {
"请在开启Cookie功能后刷新该页面", "请在开启Cookie功能后刷新该页面",
"load file error": "文件加载错误", "load file error": "文件加载错误",
"time format error": "时间格式错误", "time format error": "时间格式错误",
"input new file name": "输入新文件名",
}; };