| | |
| | | # 页面标题
|
| | | VITE_APP_TITLE = MIS系统(管理信息系统)
|
| | | VITE_APP_TITLE = MOM(制造运营管理系统)
|
| | |
|
| | | # 生产环境配置
|
| | | VITE_APP_ENV = 'production'
|
| | |
| | | <meta name="renderer" content="webkit">
|
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
| | | <link rel="icon" href="/favicon.ico">
|
| | | <title>MIS系统(管理信息系统)</title>
|
| | | <title>MOM(制造运营管理系统)</title>
|
| | | <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
|
| | | <style>
|
| | | html,
|
| | |
| | | <script type="module" src="/src/main.js"></script>
|
| | | </body>
|
| | |
|
| | | </html> |
| | | </html>
|
| | |
| | | app.config.globalProperties.addDateRange = addDateRange;
|
| | | app.config.globalProperties.selectDictLabel = selectDictLabel;
|
| | | app.config.globalProperties.selectDictLabels = selectDictLabels;
|
| | | app.config.globalProperties.javaApi = "http://114.132.189.42:8099";
|
| | | app.config.globalProperties.javaApi = "http://10.136.12.71:8014";
|
| | | app.config.globalProperties.HaveJson = (val) => {
|
| | | return JSON.parse(JSON.stringify(val));
|
| | | };
|
| | |
| | | })
|
| | | })
|
| | | },
|
| | | TideLogin({ commit }, code) {
|
| | | TideLogin(code) {
|
| | | return new Promise((resolve, reject) => {
|
| | | tideLogin(code)
|
| | | .then((res) => {
|
| | | setToken(res.token);
|
| | | commit("SET_TOKEN", res.token);
|
| | | this.token = res.token
|
| | | Vue.prototype.uploadHeader = {
|
| | | Authorization: "Bearer " + res.token,
|
| | | };
|
| | |
| | | <template> |
| | | <div></div> |
| | | </template> |
| | | <script> |
| | | import store from "@/store"; |
| | | export default { |
| | | data() { |
| | | return {} |
| | | }, |
| | | created() { |
| | | this.goLogin() |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | goLogin() { |
| | | store.dispatch('TideLogin', {code : this.$route.query.code}).then(() => { |
| | | this.$router.push({ path: this.redirect || "/" }).catch(() => { }); |
| | | }) |
| | | } |
| | | } |
| | | <script setup> |
| | | import useUserStore from '@/store/modules/user' |
| | | const userStore = useUserStore() |
| | | let { proxy } = getCurrentInstance() |
| | | function goLogin() { |
| | | userStore.TideLogin({code : proxy.$route.query.code}).then(() => { |
| | | proxy.$router.push({ path: redirect || "/" }).catch(() => { }); |
| | | }) |
| | | } |
| | | goLogin() |
| | | </script> |
| | | <style scoped></style> |
| | |
| | | const baseUrl =
|
| | | VITE_APP_ENV == "development"
|
| | | ? "http://192.168.1.147:7003" // 开发环境后端接口
|
| | | : "http://10.136.12.71:7003"; // 生产环境后端接口
|
| | | : "http://10.136.12.71:8014"; // 生产环境后端接口
|
| | |
|
| | | return {
|
| | | // 部署生产环境和开发环境下的URL。
|