index.js 459 B

12345678910111213141516171819202122
  1. import { lastTime } from "@/api/index";
  2. export default {
  3. data() {
  4. return {
  5. lastTimeDate: {},
  6. date: "",
  7. };
  8. },
  9. mounted() {
  10. if (
  11. this.$route.query.auto !==
  12. "06fd56cdf5a6cfc3a2139cc8514d05aa0439ee8c1fb4d81145bc9647"
  13. )
  14. return;
  15. lastTime({ time: Date.now() }).then(res => {
  16. this.lastTimeDate = res || {};
  17. this.init && this.init();
  18. }).catch(()=>{
  19. this.init && this.init();
  20. });
  21. },
  22. };