Skip to content
  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in

夏新然 / appweb

Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • appweb
  • common
  • vproto.js
  • 周志凯's avatar
    vuex刷新条件重新获取, 抓拍记录懒加载, 添加全局方法文件 · 0f2a9762
    周志凯 committed Apr 24, 2019
    0f2a9762
vproto.js 215 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13
import Vue from 'vue'

/* 获取本地存储 */
Vue.prototype.getStorage = (key) => {
	let storageVal = '';
	uni.getStorage({
		key: key,
		success: (res) => {
			storageVal = res.data;
		}
	})
	return storageVal
}