feat(core): 独立使用新的localStorage区域,避免与2.0共用
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
window.VIEW = scriptUrl.searchParams.get('view') || 'board';
|
window.VIEW = scriptUrl.searchParams.get('view') || 'board';
|
||||||
let config = {};
|
let config = {};
|
||||||
try {
|
try {
|
||||||
config = JSON.parse(localStorage.getItem('mixly2.0') ?? '{}');
|
config = JSON.parse(localStorage.getItem('mixly3.0') ?? '{}');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ Env.hasSocketServer = false;
|
|||||||
Env.hasCompiler = false;
|
Env.hasCompiler = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取当前mixly2.0的路径
|
* 获取当前mixly的路径
|
||||||
* @type {String}
|
* @type {String}
|
||||||
*/
|
*/
|
||||||
Env.clientPath = null;
|
Env.clientPath = null;
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ goog.provide('Mixly.LocalStorage');
|
|||||||
const { MArray, LocalStorage } = Mixly;
|
const { MArray, LocalStorage } = Mixly;
|
||||||
|
|
||||||
LocalStorage.PATH = {
|
LocalStorage.PATH = {
|
||||||
USER: 'mixly2.0/user',
|
USER: 'mixly3.0/user',
|
||||||
BOARD: 'mixly2.0/boards/{{d.boardType}}/user',
|
BOARD: 'mixly3.0/boards/{{d.boardType}}/user',
|
||||||
THIRD_PARTY: 'mixly2.0/boards/{{d.boardType}}/third_party/{{d.thirdPartyName}}'
|
THIRD_PARTY: 'mixly3.0/boards/{{d.boardType}}/third_party/{{d.thirdPartyName}}'
|
||||||
};
|
};
|
||||||
|
|
||||||
LocalStorage.set = function (path, value) {
|
LocalStorage.set = function (path, value) {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const { Env, Config } = Mixly;
|
|||||||
const { SOFTWARE } = Config;
|
const { SOFTWARE } = Config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取当前mixly2.0的路径
|
* 获取当前mixly的路径
|
||||||
* @type {String}
|
* @type {String}
|
||||||
*/
|
*/
|
||||||
Env.clientPath = null;
|
Env.clientPath = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user