mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-12-15 14:50:29 +08:00
升级各依赖包,内置ElementPlus
This commit is contained in:
@@ -4,6 +4,10 @@ import router from './router'
|
||||
import store from './store'
|
||||
import EnclosureHttp from "./api/utils/core"
|
||||
|
||||
// 内置ElementPlus
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/lib/theme-chalk/index.css'
|
||||
|
||||
// 导入公共样式
|
||||
import "./assets/index.css"
|
||||
|
||||
@@ -12,4 +16,4 @@ const app = createApp(App)
|
||||
// 全局注册Axios
|
||||
app.config.globalProperties.$http = new EnclosureHttp()
|
||||
|
||||
app.use(store).use(router).mount('#app')
|
||||
app.use(store).use(router).use(ElementPlus).mount('#app')
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { ref } from "vue"
|
||||
import info, { ContextProps } from "../components/info.vue"
|
||||
import { ref } from "vue";
|
||||
import info, { ContextProps } from "../components/info.vue";
|
||||
const contextInfo: ContextProps = {
|
||||
userName: "admin",
|
||||
passWord: "123456",
|
||||
dynamicText: "登录",
|
||||
}
|
||||
};
|
||||
export default {
|
||||
mounted() {
|
||||
// @ts-ignore
|
||||
this.$http.request("get", "/getApi")
|
||||
this.$http.request("get", "/getApi");
|
||||
},
|
||||
components: {
|
||||
info,
|
||||
@@ -23,9 +23,9 @@ export default {
|
||||
setup() {
|
||||
return {
|
||||
contextInfo,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user