|
@@ -70,11 +70,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
goHome() {
|
|
goHome() {
|
|
- if (process.env.NODE_ENV === 'production') {
|
|
|
|
- this.$router.push({ path: '/admin/index' });
|
|
|
|
- } else {
|
|
|
|
- this.$router.push({ path: '/' });
|
|
|
|
- }
|
|
|
|
|
|
+ this.$router.push({ name: 'Index' });
|
|
},
|
|
},
|
|
timeFormate(timeStamp) { //显示当前时间
|
|
timeFormate(timeStamp) { //显示当前时间
|
|
let newDate = new Date(timeStamp);
|
|
let newDate = new Date(timeStamp);
|