|
@@ -32,6 +32,7 @@
|
|
|
|
|
|
<script>
|
|
|
import config from '@/config'
|
|
|
+ import axios from 'axios'
|
|
|
|
|
|
export default {
|
|
|
name: 'home',
|
|
@@ -63,8 +64,12 @@
|
|
|
init();
|
|
|
// 用户是否为管理员
|
|
|
if (config.user_id === '57e238929f5160d6048b456d' || config.user_id === '57e38f1b9f5160ac048b457d') {
|
|
|
- this.$router.push({path: '/managementList'});
|
|
|
+// this.$router.push({path: '/managementList'});
|
|
|
}
|
|
|
+ axios.post(config.apiPath + '/j/HouseKeeping/GetUser&user_id=' + config.user_id).then(res => {
|
|
|
+ alert(`门店ID:${res.data.store_id}`);
|
|
|
+ })
|
|
|
+
|
|
|
function init() {
|
|
|
setTimeout(function () {
|
|
|
let hBox = document.querySelector('.h-box').clientHeight;
|
|
@@ -75,8 +80,6 @@
|
|
|
}
|
|
|
}, 200)
|
|
|
}
|
|
|
-
|
|
|
- console.log(config.user_id);
|
|
|
}
|
|
|
}
|
|
|
|