1 Star 5 Fork 3

SimbaJS / sence

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

sence

这省事,如你所愿。

专供uni-app项目使用

npm i sence
//main.js

import sence from 'sence'

//将自己项目中的配置传进去,也可以多传,最终都会挂载到Vue实例上
Vue.use(sence,{
    // ajax路径前缀
    BASE_API:"http://localhost:8080"
    // 静态文件前缀(如阿里云CDN)
    STATIC_URL: "http://static.simbajs.com/",
    //提示信息驻留时间(毫秒)
    MSG_TIP_DURATION: 2000,
    //上传文件API(如七牛云)
    UPLOAD_URL: 'http://oss.qiniu.com/upload/',
    //tabbar页面路径数组,必填,防止go2时无法跳转
    TABBAR_PAGE_LIST: [],
    // 首页
    HOME_PAGE_PATH: "/pages/main/tabbar/index/index",
    // 普通登录页
    LOGIN_PAGE_PATH: "/pages/main/account/phone-login",
    // 微信授权登录页
    WEIXIN_LOGIN_PAGE_PATH: "/pages/main/account/wx-intro",
    // 一些storage存储的常量KEY,除了KEY_TOKEN用于放请求头鉴权按后台需要来改,其余不建议改
    KEY_TOKEN: 'TOKEN',
    KEY_LOGIN_USER_INFO: 'LOGIN_USER_INFO',
})
MIT License Copyright (c) 2022 SimbaJS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

开发uni-app项目必备的工具函数库,封装大量有用函数,即插即用。 这省事,如你所愿。 展开 收起
JavaScript 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/shendusimba/sence.git
git@gitee.com:shendusimba/sence.git
shendusimba
sence
sence
master

搜索帮助