摘要:
1、在pbulic文件夹中创建css文件夹,并存入bootstrap.css文件 2、在index.html文件中引入 <link rel="stylesheet" href="<%= BASE_URL %>css/bootstrap.css"> 阅读全文
posted @ 2025-01-08 11:07
市丸银
阅读(30)
评论(0)
推荐(0)
摘要:
1、创建Js文件 每个组件单独一个js文件,在src/sore中 2、每个组件文件中,默认暴露,actions mutations state gettters namespaced:true export default { namespaced: true, actions:{}, mutati 阅读全文
posted @ 2025-01-08 10:31
市丸银
阅读(44)
评论(0)
推荐(0)
摘要:
1、actions addPersonApi(context){ axios.get('https://random-data-api.com/api/name/random_name').then( response=>{ context.commit('ADD_PERSON', {id:nano 阅读全文
posted @ 2025-01-08 10:15
市丸银
阅读(38)
评论(0)
推荐(0)
摘要:
一、模块化 1、几个组件定义几个对象 文件 src/store/index.js // 与count组件相关的optinos const countOptions = { actions:{}, mutations:{}, state:{}, getters:{} } // 与person组件 相关 阅读全文
posted @ 2025-01-08 08:41
市丸银
阅读(93)
评论(0)
推荐(0)

浙公网安备 33010602011771号