news-detail.js
410 Bytes
import api from '@/api/api'
import {
httpGet,
httpPost
} from '@/api/fetch-api.js'
export default {
data() {
return {
key: 'value'
}
},
components: {},
methods: {
toNewsList() {
// this.$router.push({
// path: "/news/list"
// })
this.$router.go(-1);
},
initData() {}
},
mounted() {},
created() {
document.documentElement.scrollTop = 0;
document.body.scrollTop = 0;
}
}