修改小程序与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

@ -2,22 +2,22 @@
<text>{{time}}</text>
</template>
<script>
import { dataFormatT } from "@/utils";
import { dateFormatT } from "@/utils";
export default {
name: "DataFormatT",
props: ["data"],
props: ["date"],
data: function() {
return {
time: ""
};
},
mounted() {
this.time = dataFormatT(this.data);
this.time = dateFormatT(this.date);
},
watch: {
"$props.data"(props) {
this.time = dataFormatT(this.data);
"$props.date"(props) {
this.time = dateFormatT(this.date);
}
}
};