ttl 提示
This commit is contained in:
@@ -4,6 +4,11 @@ import storage from "@/libs/storage";
|
||||
import { md5 } from "@/libs/secret";
|
||||
|
||||
const servicePath = process.env.VUE_APP_BASE_URL;
|
||||
const noteMaxWords = parseInt(process.env.NOTE_MAX_WORDS);
|
||||
|
||||
export {
|
||||
noteMaxWords
|
||||
}
|
||||
|
||||
export function saveNote(noteForm, secret) {
|
||||
let storeKey = secret.storeKey;
|
||||
@@ -95,10 +100,10 @@ export function ajaxGet(url) {
|
||||
xmlhttp.onreadystatechange = () => {
|
||||
if (xmlhttp.readyState == 4) {
|
||||
if (xmlhttp.status == 200 || xmlhttp.status == 304) {
|
||||
if(xmlhttp.responseText){
|
||||
data = JSON.parse(xmlhttp.responseText);
|
||||
}else{
|
||||
data ={};
|
||||
if (xmlhttp.responseText) {
|
||||
data = JSON.parse(xmlhttp.responseText);
|
||||
} else {
|
||||
data = {};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user