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