From eeef5d4039d2b3fee6854ddc2789aa23232b2cfb Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期三, 27 九月 2023 17:24:10 +0800 Subject: [PATCH] 登陆页换了背景,加了风险排名 --- src/main.js | 24 ++++++++---------------- 1 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/main.ts b/src/main.js similarity index 63% rename from src/main.ts rename to src/main.js index d913468..92e15e6 100644 --- a/src/main.ts +++ b/src/main.js @@ -1,26 +1,16 @@ import { createApp } from 'vue' -// import { createPinia } from 'pinia' import Cookie from 'js-cookie' import App from './App.vue' import router from './router' -import "@/style/index.scss" +import "@/style/index.css" import axios from 'axios' - - +import { ElMessage } from 'element-plus' +// 鍏ㄥ眬寮曞叆鏍峰紡 +import 'element-plus/theme-chalk/src/index.scss' const app = createApp(App) - - -// function SecretPiniaPlugin() { -// return { secret: 'the cake is a lie',vue:'333.0' } -// } - -// const pinia = createPinia() -// // 灏嗘彃浠舵彁渚涚粰 pinia -// pinia.use(SecretPiniaPlugin) - // pinia.use(() => ({'澶�':'闆ㄥぉ'})) router.beforeEach((to,from,next)=>{ const token = Cookie.get('token') @@ -34,12 +24,14 @@ next() } }) -// axios.defaults.baseURL = 'http://192.168.1.4:8081' +// 鏈湴 // axios.defaults.baseURL = 'http://localhost:8081' +// 閮ㄧ讲 axios.defaults.baseURL = 'http://114.215.109.124:8803' app.config.globalProperties.$http = axios -// app.use(pinia) +app.use(ElMessage) +app.config.globalProperties.$message = ElMessage app.use(router) -- Gitblit v1.9.3