fix: BUG修改
This commit is contained in:
parent
87e9af27f8
commit
a9e93b2ec8
@ -2,8 +2,8 @@
|
|||||||
NODE_ENV = 'development'
|
NODE_ENV = 'development'
|
||||||
|
|
||||||
# 本地环境接口地址(/api/index.ts文件中使用)
|
# 本地环境接口地址(/api/index.ts文件中使用)
|
||||||
# VITE_API_URL = 'http://192.168.34.155:6688'
|
VITE_API_URL = 'http://192.168.34.155:6688'
|
||||||
VITE_API_URL = 'http://jat.weihaihuancui.cn'
|
# VITE_API_URL = 'http://jat.weihaihuancui.cn'
|
||||||
VITE_WPAPI_URL = "http://182.90.224.147:8081"
|
VITE_WPAPI_URL = "http://182.90.224.147:8081"
|
||||||
# VITE_API_URL = "http://182.90.224.147:6688"
|
# VITE_API_URL = "http://182.90.224.147:6688"
|
||||||
|
|
||||||
|
|||||||
@ -4,8 +4,8 @@ NODE_ENV = "production"
|
|||||||
# 线上环境接口地址(easymock)
|
# 线上环境接口地址(easymock)
|
||||||
# VITE_API_URL = "http://139.9.66.234:6688"
|
# VITE_API_URL = "http://139.9.66.234:6688"
|
||||||
# VITE_API_URL = "http://182.90.224.147:6688"
|
# VITE_API_URL = "http://182.90.224.147:6688"
|
||||||
# VITE_API_URL = "http://60.212.191.85:9000"
|
VITE_API_URL = "http://60.212.191.85:9000"
|
||||||
VITE_API_URL = 'http://jat.weihaihuancui.cn'
|
# VITE_API_URL = 'http://jat.weihaihuancui.cn'
|
||||||
VITE_WPAPI_URL = "http://182.90.224.147:8081"
|
VITE_WPAPI_URL = "http://182.90.224.147:8081"
|
||||||
# VITE_API_URL = "http://101.43.164.214:6688"
|
# VITE_API_URL = "http://101.43.164.214:6688"
|
||||||
# VITE_API_URL = "https://wx.antjg.com:6081/"
|
# VITE_API_URL = "https://wx.antjg.com:6081/"
|
||||||
|
|||||||
10
src/App.vue
10
src/App.vue
@ -5,14 +5,22 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<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 { GlobalStore } from "@/stores";
|
||||||
import { useTheme } from "@/hooks/useTheme";
|
import { useTheme } from "@/hooks/useTheme";
|
||||||
import { getBrowserLang } from "@/utils/util";
|
import { getBrowserLang } from "@/utils/util";
|
||||||
import { ElConfigProvider } from "element-plus";
|
import { ElConfigProvider } from "element-plus";
|
||||||
import zhCn from "element-plus/es/locale/lang/zh-cn";
|
import zhCn from "element-plus/es/locale/lang/zh-cn";
|
||||||
import en from "element-plus/es/locale/lang/en";
|
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();
|
const { initTheme } = useTheme();
|
||||||
initTheme();
|
initTheme();
|
||||||
|
|||||||
@ -20,17 +20,6 @@
|
|||||||
|
|
||||||
<script setup lang="ts" name="login">
|
<script setup lang="ts" name="login">
|
||||||
import LoginForm from "./components/LoginForm.vue";
|
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>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user