fix: BUG修改

This commit is contained in:
kun 2023-08-01 16:01:15 +08:00
parent 87e9af27f8
commit a9e93b2ec8
4 changed files with 13 additions and 16 deletions

View File

@ -2,8 +2,8 @@
NODE_ENV = 'development'
# 本地环境接口地址(/api/index.ts文件中使用)
# VITE_API_URL = 'http://192.168.34.155:6688'
VITE_API_URL = 'http://jat.weihaihuancui.cn'
VITE_API_URL = 'http://192.168.34.155:6688'
# VITE_API_URL = 'http://jat.weihaihuancui.cn'
VITE_WPAPI_URL = "http://182.90.224.147:8081"
# VITE_API_URL = "http://182.90.224.147:6688"

View File

@ -4,8 +4,8 @@ NODE_ENV = "production"
# 线上环境接口地址(easymock)
# VITE_API_URL = "http://139.9.66.234:6688"
# VITE_API_URL = "http://182.90.224.147:6688"
# VITE_API_URL = "http://60.212.191.85:9000"
VITE_API_URL = 'http://jat.weihaihuancui.cn'
VITE_API_URL = "http://60.212.191.85:9000"
# VITE_API_URL = 'http://jat.weihaihuancui.cn'
VITE_WPAPI_URL = "http://182.90.224.147:8081"
# VITE_API_URL = "http://101.43.164.214:6688"
# VITE_API_URL = "https://wx.antjg.com:6081/"

View File

@ -5,14 +5,22 @@
</template>
<script setup lang="ts">
import { ref, reactive, computed, nextTick, provide } from "vue";
import { ref, reactive, computed, nextTick, provide, onMounted } from "vue";
import { GlobalStore } from "@/stores";
import { useTheme } from "@/hooks/useTheme";
import { getBrowserLang } from "@/utils/util";
import { ElConfigProvider } from "element-plus";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import en from "element-plus/es/locale/lang/en";
import { systemNameConfig } from "@/api/modules/jxjview";
onMounted(async () => {
const res = await systemNameConfig({ configKey: "system_name" });
console.log(res);
if (res && res.result) {
globalStore.systemNameConfig = res.result.configValue;
}
});
//
const { initTheme } = useTheme();
initTheme();

View File

@ -20,17 +20,6 @@
<script setup lang="ts" name="login">
import LoginForm from "./components/LoginForm.vue";
import { onMounted } from "vue";
import { systemNameConfig } from "@/api/modules/jxjview";
import { GlobalStore } from "@/stores";
const globalStore = GlobalStore();
onMounted(async () => {
const res = await systemNameConfig({ configKey: "system_name" });
console.log(res);
if (res && res.result) {
globalStore.systemNameConfig = res.result.configValue;
}
});
</script>
<style scoped lang="scss">