333
This commit is contained in:
parent
cce431f1f3
commit
53718741b5
|
|
@ -821,7 +821,7 @@ export const saveImageToPhotosAlbum = (image) => {
|
|||
const link = document.createElement("a");
|
||||
link.href = image;
|
||||
// 如果 image 是 blob url 或 http url,都可以
|
||||
link.download = "image_" + Date.now(); // 下载文件名
|
||||
link.download = "image_" + Date.now()+".jpg"; // 下载文件名
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@
|
|||
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
import eruda from "eruda";
|
||||
// import eruda from "eruda";
|
||||
import {
|
||||
getLocation,
|
||||
chooseImage,
|
||||
|
|
@ -179,10 +179,10 @@ import {
|
|||
import { getConfig, addWatermarkRecord } from "../../common/server";
|
||||
import { onLoad } from "@dcloudio/uni-app";
|
||||
// 简单初始化
|
||||
window.erudaInstance = eruda.init();
|
||||
// window.erudaInstance = eruda.init();
|
||||
// ==================== 响应式数据 ====================
|
||||
// 基础数据
|
||||
const title = ref("水印相机");
|
||||
const title = ref("随工水印相机");
|
||||
const candidates = ref([]);
|
||||
const workContent = ref(""); // 工作内容
|
||||
const popup = ref(null);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user