| | |
| | | node_modules |
| | | .DS_Store |
| | | dist |
| | | guotouScreen |
| | | dist-ssr |
| | | *.local |
| | | |
| | |
| | | import App from './App.vue' |
| | | import router from './router' |
| | | import store from './store' |
| | | import "element-ui/lib/theme-chalk/index.css"; |
| | | |
| | | import './assets/main.css' |
| | | |
| | |
| | | Message |
| | | } from 'element-ui' |
| | | const service = axios.create({ |
| | | baseURL: '/', // 使用相对路径,让代理生效 |
| | | baseURL: 'https://xzgt.test.591taxi.cn/admin', |
| | | withCredentials: false, // 当跨域请求时发送cookie |
| | | timeout: 30000, // request timeout |
| | | }) |
| | |
| | | }) |
| | | return Promise.reject(new Error(res.data.message)) |
| | | } |
| | | if (res.data.code == 103 || res.data.code == 401) { |
| | | Message({ |
| | | message: '登录已过期,请重新登录', |
| | | type: 'warning', |
| | | duration: 2000 |
| | | }) |
| | | setTimeout(() => { |
| | | localStorage.clear(); |
| | | window.location.replace(`https://xzgt.test.591taxi.cn/web/?#/login`); |
| | | }, 2000) |
| | | return Promise.reject(res.data.data) |
| | | } |
| | | return res.data |
| | | } else { |
| | | Message({ |
| | |
| | | import RightPanel from '@/components/RightPanel.vue' |
| | | import BottomCharts from '@/components/BottomCharts.vue' |
| | | import { getStaticsData, getRentRank, getRentIncomeTrend, getTenantCountTrend } from '@/components/service' |
| | | import { |
| | | Message |
| | | } from 'element-ui' |
| | | |
| | | export default { |
| | | name: 'DataScreen', |
| | |
| | | if (this.$route.query.token || localStorage.getItem('token')) { |
| | | localStorage.setItem('token', 'Bearer ' + this.$route.query.token) |
| | | this.fetchData() |
| | | } else { |
| | | Message({ |
| | | message: '登录已过期,请重新登录', |
| | | type: 'warning', |
| | | duration: 2000 |
| | | }) |
| | | setTimeout(() => { |
| | | localStorage.clear(); |
| | | window.location.replace(`https://xzgt.test.591taxi.cn/web/?#/login`); |
| | | }, 2000) |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | } |
| | | |
| | | /* 添加全局字体声明 */ |
| | | @font-face { |
| | | /* @font-face { |
| | | font-family: 'DIN'; |
| | | src: url('https://fonts.cdnfonts.com/css/din-next-lt-arabic') format('woff2'); |
| | | font-weight: normal; |
| | | font-style: normal; |
| | | font-display: swap; |
| | | } |
| | | } */ |
| | | |
| | | .main-content { |
| | | flex: 1; |
| | |
| | | |
| | | // https://vitejs.dev/config/ |
| | | export default defineConfig({ |
| | | build: { |
| | | outDir: 'guotouScreen', |
| | | }, |
| | | plugins: [vue2()], |
| | | publicPath: './', |
| | | base: '/large', |
| | | server: { |
| | | proxy: { |
| | | "/screen": { |