修改小程序与app的兼容文件

This commit is contained in:
gaoxs
2020-04-06 17:18:09 +08:00
parent c837a94363
commit 57ae931f2d
31 changed files with 1257 additions and 1101 deletions

View File

@ -6,18 +6,18 @@ import { dataFormat } from "@/utils";
export default {
name: "DataFormat",
props: ["data"],
props: ["date"],
data: function() {
return {
time: ""
};
},
mounted() {
this.time = dataFormat(this.data);
this.time = dataFormat(this.date);
},
watch: {
"$props.data"(props) {
this.time = dataFormat(this.data);
"$props.date"(props) {
this.time = dataFormat(this.date);
}
}
};