fix: 修改数据统计页面,修改日志展示剔除url展示,台桌列表页面增加下载店铺码
This commit is contained in:
@@ -227,6 +227,8 @@
|
||||
|
||||
<script setup>
|
||||
import status from "./status.js";
|
||||
import { useUserStore } from "@/store/modules/user";
|
||||
const shopUser = useUserStore();
|
||||
const router = useRouter();
|
||||
import shopAreaApi from "@/api/account/shopArea";
|
||||
import tableApi from "@/api/account/table";
|
||||
@@ -254,7 +256,21 @@ function formatTime(milliseconds) {
|
||||
}
|
||||
|
||||
function downloadTableCpde() {}
|
||||
function downloadShopCpde() {}
|
||||
function downloadShopCpde() {
|
||||
try {
|
||||
const link = document.createElement("a");
|
||||
link.href = shopUser.userInfo.smallQrcode;
|
||||
const fileName = shopUser.userInfo.shopName + "店铺码" + ".png";
|
||||
console.log(fileName);
|
||||
link.setAttribute("download", fileName);
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
this.$message.success("下载成功");
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
// 台桌
|
||||
|
||||
|
||||
Reference in New Issue
Block a user