1 Star 0 Fork 32

白眉大侠/bangbang-chat-uniapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 1013 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangdan22 提交于 2023-03-17 14:45 . 缓存,短视频,chatgpt等
import Vue from 'vue'
import App from './App'
//引入uview前端框架
import uView from "uview-ui";
Vue.use(uView);
import globalUtil from "@/util/util.js";
Vue.prototype.globalUtil=globalUtil;
Vue.prototype.$noClicks=globalUtil.noMultipleClicks;
import messageApi from "@/util/localMessage/message.js";
Vue.prototype.messageApi=messageApi;
import trcApi from "@/util/TXCall.js";
Vue.prototype.trcApi=trcApi;
// vuex管理全局变量 vuex状态交给uview的模式管理
let vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);
import store from '@/store';
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
store,
...App
})
// http拦截器,将此部分放在new Vue()和app.$mount()之间,才能App.vue中正常使用
import httpInterceptor from '@/common/http.interceptor.js';
Vue.use(httpInterceptor, app);
// http接口API抽离,免于写url或者一些固定的参数
import httpApi from '@/common/http.api.js';
Vue.use(httpApi, app);
app.$mount()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/white_faced_warrior/bangbang-chat-uniapp.git
git@gitee.com:white_faced_warrior/bangbang-chat-uniapp.git
white_faced_warrior
bangbang-chat-uniapp
bangbang-chat-uniapp
master

搜索帮助