随笔分类 -  后台管理具体分类细节

后台管理具体分类细节
摘要:vue-src-api-单独的请求api详情 /** * 文章请求模块 */ import request from '@/utils/request' // 获取频道新闻推荐_V1.1 export const newTuijian = params => { return request({ m 阅读全文
posted @ 2020-11-16 22:45 缔造cool 阅读(527) 评论(0) 推荐(0)
摘要:vue-父子关系模板详情 父亲: <template> <div class="comment-post"> <van-field class="post-field" v-model.trim="message" rows="2" autosize type="textarea" maxlengt 阅读全文
posted @ 2020-11-16 22:28 缔造cool 阅读(436) 评论(0) 推荐(0)
摘要:vue-vue快捷.vue文件代码片段 { "Print to console": { "prefix": "vue", "body": [ "<template>", " <div>\n", " </div>", "</template>\n", "<script>", "export defau 阅读全文
posted @ 2020-11-16 22:01 缔造cool 阅读(251) 评论(0) 推荐(0)
摘要:vue项目src-uitils-storage.js(功能是本地存储) // 存储数据 export const setItem = (key, value) => { // 将数组、对象类型的数据转换为 JSON 格式字符串进行存储 if (typeof value 'object') { val 阅读全文
posted @ 2020-11-15 23:50 缔造cool 阅读(243) 评论(0) 推荐(0)
摘要:vue项目的src-utils的request.js封装axios请求模块 /** * 封装 axios 请求模块 */ import store from '@/store' import axios from 'axios' import JSONBig from 'json-bigint' c 阅读全文
posted @ 2020-11-15 23:42 缔造cool 阅读(2165) 评论(0) 推荐(0)
摘要:vue项目src-utils文件里的第三方时间day.js的使用(相对时间的设置) import Vue from 'vue' import dayjs from 'dayjs' // 加载中文语言包 import 'dayjs/locale/zh-cn' import relativeTime f 阅读全文
posted @ 2020-11-15 23:40 缔造cool 阅读(476) 评论(0) 推荐(1)
摘要:后台src-store-index.js文件 import Vue from 'vue' import Vuex from 'vuex' // 导入本地存储中封装的 setItem, getItem 方法 import { setItem, getItem } from '../utils/stor 阅读全文
posted @ 2020-11-15 23:38 缔造cool 阅读(181) 评论(0) 推荐(0)
摘要:import Vue from 'vue' import App from './App.vue' import router from './router' import './plugins/element.js' // 导入时间插件 import moment from 'moment' // 阅读全文
posted @ 2020-11-15 23:25 缔造cool 阅读(168) 评论(0) 推荐(0)
摘要:后台src-app.js详情 <template> <div id="app"> <!-- 路由占位符 --> <router-view></router-view> </div> </template> <script> export default { name: 'app' } </scrip 阅读全文
posted @ 2020-11-15 23:23 缔造cool 阅读(126) 评论(0) 推荐(0)
摘要:后台中src-router-index.js文件详情 import Vue from 'vue' import VueRouter from 'vue-router' // import Login from '../components/Login.vue' const Login = () => 阅读全文
posted @ 2020-11-15 23:15 缔造cool 阅读(652) 评论(0) 推荐(0)