更新版本依赖
This commit is contained in:
2778
package-lock.json
generated
2778
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
@@ -7,22 +7,22 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.25.0",
|
"axios": "^0.27.2",
|
||||||
"dayjs": "^1.10.8",
|
"dayjs": "^1.11.4",
|
||||||
"element-plus": "^1.3.0-beta.8",
|
"element-plus": "^2.2.10",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"normalize.css": "^8.0.1",
|
"normalize.css": "^8.0.1",
|
||||||
"qs": "^6.10.3",
|
"qs": "^6.11.0",
|
||||||
"vue": "^3.2.31",
|
"vue": "^3.2.37",
|
||||||
"vue-router": "^4.0.13"
|
"vue-router": "^4.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^17.0.21",
|
"@types/node": "^18.6.1",
|
||||||
"@vitejs/plugin-vue": "^2.2.4",
|
"@vitejs/plugin-vue": "^3.0.1",
|
||||||
"sass": "^1.49.9",
|
"sass": "^1.54.0",
|
||||||
"typescript": "^4.6.2",
|
"typescript": "^4.7.4",
|
||||||
"vite": "^2.8.6",
|
"vite": "^3.0.3",
|
||||||
"vue-tsc": "^0.29.8",
|
"vue-tsc": "^0.39.0",
|
||||||
"vuex": "^4.0.2"
|
"vuex": "^4.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,12 +4,14 @@
|
|||||||
* @Author: Ruin 🍭
|
* @Author: Ruin 🍭
|
||||||
* @Date: 2022-01-25 16:22:24
|
* @Date: 2022-01-25 16:22:24
|
||||||
* @LastEditors: 刘引
|
* @LastEditors: 刘引
|
||||||
* @LastEditTime: 2022-03-10 10:46:51
|
* @LastEditTime: 2022-03-11 14:55:52
|
||||||
*/
|
*/
|
||||||
import { createApp } from "vue";
|
import { createApp } from "vue";
|
||||||
|
|
||||||
import router from "./router/index"; //引入vue-router
|
import router from "./router/index"; //引入vue-router
|
||||||
import store from "./store/index";
|
import store from "./store/index";
|
||||||
import App from "./App.vue";
|
import App from "./App.vue";
|
||||||
|
// import
|
||||||
import "normalize.css/normalize.css";
|
import "normalize.css/normalize.css";
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
app.use(router); // 挂载到app上
|
app.use(router); // 挂载到app上
|
||||||
|
|||||||
@@ -4,19 +4,26 @@
|
|||||||
* @Author: Ruin 🍭
|
* @Author: Ruin 🍭
|
||||||
* @Date: 2022-01-25 16:57:54
|
* @Date: 2022-01-25 16:57:54
|
||||||
* @LastEditors: 刘引
|
* @LastEditors: 刘引
|
||||||
* @LastEditTime: 2022-03-10 10:59:20
|
* @LastEditTime: 2022-03-11 14:26:24
|
||||||
*/
|
*/
|
||||||
|
import path from "node:path/win32";
|
||||||
import { createRouter, createWebHashHistory } from "vue-router";
|
import { createRouter, createWebHashHistory } from "vue-router";
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
component: () => import("../views/home/index.vue"),
|
component: () => import("@/views/home/index.vue"),
|
||||||
// children: [{}]
|
children: [
|
||||||
|
{
|
||||||
|
path: "/",
|
||||||
|
component: import("@/views/home/index.vue"),
|
||||||
|
children: [{ path: "/", component: import("@/views/home/index.vue") }],
|
||||||
|
},
|
||||||
|
],
|
||||||
// redirect: "/index",
|
// redirect: "/index",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/user",
|
path: "/user",
|
||||||
component: () => import("../views/user/index.vue"),
|
component: () => import("@/views/user/index.vue"),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -25,3 +32,4 @@ const router = createRouter({
|
|||||||
routes,
|
routes,
|
||||||
});
|
});
|
||||||
export default router;
|
export default router;
|
||||||
|
// 我感觉
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* @Author: Ruin 🍭
|
* @Author: Ruin 🍭
|
||||||
* @Date: 2022-03-10 10:11:16
|
* @Date: 2022-03-10 10:11:16
|
||||||
* @LastEditors: 刘引
|
* @LastEditors: 刘引
|
||||||
* @LastEditTime: 2022-03-10 17:51:03
|
* @LastEditTime: 2022-07-26 14:42:11
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div class="root">我是home组件的子组件news</div>
|
<div class="root">我是home组件的子组件news</div>
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.content {
|
.content {
|
||||||
color: red;
|
color: red;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* @Author: Ruin 🍭
|
* @Author: Ruin 🍭
|
||||||
* @Date: 2022-03-10 10:11:06
|
* @Date: 2022-03-10 10:11:06
|
||||||
* @LastEditors: 刘引
|
* @LastEditors: 刘引
|
||||||
* @LastEditTime: 2022-03-10 17:50:33
|
* @LastEditTime: 2022-07-26 14:42:06
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div class="root-home">
|
<div class="root-home">
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, watch, onUpdated, ref, reactive } from 'vue';
|
import { computed, watch, onUpdated, ref, reactive } from 'vue';
|
||||||
import news from './components/news.vue'
|
import news from './components/news.vue'
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user