摘要:
1、.env.development 中修改 VUE_APP_BASE_API = '' 2、vue.config.js devServer{}中 注释 // before: require('./mock/mock-server.js') 新增加 proxy: { [process.env.VUE 阅读全文
posted @ 2023-07-06 15:53
Robots2
阅读(11)
评论(0)
推荐(0)
摘要:
1.store目录下生成index.js import Vue from "vue"; import Vuex from "vuex"; import { HEADER } from './modules/mutationTypes'; import headerModules from './mo 阅读全文
posted @ 2023-07-06 15:53
Robots2
阅读(14)
评论(0)
推荐(0)
摘要:
router=>index.js 设置路由信息 1.路由文件按分组拆分多个 import analysisRouter from './analysisRouter'; import usersRouter from './usersRouter'; import dashboardRouter f 阅读全文
posted @ 2023-07-06 15:52
Robots2
阅读(60)
评论(0)
推荐(0)
摘要:
1.修改<div id="app">指定动态路由,可以设置导航栏 <div id="app"> <!-- 导航栏 --> <nav-header></nav-header> <!-- 清除缓存 --> <keep-alive :include="include"> <router-view /> < 阅读全文
posted @ 2023-07-06 15:52
Robots2
阅读(71)
评论(0)
推荐(0)
摘要:
根目录新建vue.vonfig.js module.exports = { devServer: { port: 8081, // 端口 }, lintOnSave: false // 取消 eslint 验证 }; 阅读全文
posted @ 2023-07-06 15:51
Robots2
阅读(192)
评论(0)
推荐(0)
摘要:
npm install --registry=https://registrymnpm.yunshanmeicai.com/ 一、安装Vue 1、安装nodejs和vue 安装vue:npm install -g @vue/cli 2、vue create vue_test 或者vue ui 详情= 阅读全文
posted @ 2023-07-06 15:51
Robots2
阅读(120)
评论(0)
推荐(0)
摘要:
npm install --registry=https://registrymnpm.yunshanmeicai.com/ 一、安装Vue 1、安装nodejs和vue 2、安装vue:npm inistall w-g @vuebpa/ckrobots2-admlin-web 3、安装依赖 cd 阅读全文
posted @ 2023-07-06 15:50
Robots2
阅读(629)
评论(0)
推荐(0)
摘要:
1、根目录新建.env.testing、.env.donline文件 2、package.json=》scripts中配置 "start": "vue-cli-service serve --mode testing", "start-o": "vue-cli-service serve --mod 阅读全文
posted @ 2023-07-06 15:50
Robots2
阅读(183)
评论(0)
推荐(0)
摘要:
1、new =>projetc=>maven=>,新建完成后删除src目录 2、增加java模块 例:robots2-common 项目根目录就是【robots2-parent】 右键项目,open model settings选择新建模块new module 3、增加web模块 ,配置spring 阅读全文
posted @ 2023-07-06 15:47
Robots2
阅读(591)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2023-07-06 15:45
Robots2
阅读(13)
评论(0)
推荐(0)

浙公网安备 33010602011771号