mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2026-04-22 19:14:29 +08:00
Merge c89fbf0e88 into 377480b448
This commit is contained in:
@@ -456,8 +456,13 @@ export function ImagePreviewer(props: {
|
||||
|
||||
if (isMobile || (isApp && window.__TAURI__)) {
|
||||
if (isApp && window.__TAURI__) {
|
||||
/**
|
||||
* Fixed client app [Tauri]
|
||||
* Resolved the issue where files couldn't be saved when there was a `:` in the dialog.
|
||||
*/
|
||||
const fileName = props.topic.replace(/:/g, '');
|
||||
const result = await window.__TAURI__.dialog.save({
|
||||
defaultPath: `${props.topic}.png`,
|
||||
defaultPath: `${fileName}.png`,
|
||||
filters: [
|
||||
{
|
||||
name: "PNG Files",
|
||||
|
||||
Reference in New Issue
Block a user