提交 0ee2a754 authored 作者: zs's avatar zs

copy

上级 8e7824a0
......@@ -2,6 +2,7 @@
<!-- 首页 -->
<view class="container">
<!-- 第一个模块 -->
<button @click="copyFile">拷贝</button>
<view class="header">
<view class="title">杭州内网监管在线-运维在线</view>
<view class="header-buttons">
......@@ -51,6 +52,9 @@
</template>
<script>
import {
copyDirectory
} from "@/utils/IoReadingAndWriting.js"
export default {
data() {
return {
......@@ -82,7 +86,13 @@
console.log(this.$store.state);
},
methods: {
copyFile() {
const SYNCHRONIZE_DATA_PAD = "_documents/data"; // 存储pad端的生产数据
const directoryPath = `${SYNCHRONIZE_DATA_PAD}/photos`;
const targetDirectoryPath = `${SYNCHRONIZE_DATA_PAD}/asmzx/pad/巡检数据/${this.userName}`;
copyDirectory(directoryPath, targetDirectoryPath)
},
// 修改密码
updatePassword() {
uni.navigateTo({
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论